KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
04/12/14 08:57 AM (10 years ago)

Preventing Landscape Rotation

What code do I use to keep an Android Plugin in Portrait, that is, Preventing landscape rotation?
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
04/12/14 11:07 AM (10 years ago)
I know nothing about Android. Yet I bet it is in the manifest file. Let's hope Google or someone on here tells us.
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
04/12/14 12:37 PM (10 years ago)
Thanks Niraj Shah, I even tried adding this code: android:screenOrientation="portrait" to the manifest file but it did not work.
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
04/12/14 01:45 PM (10 years ago)
Got it to work finally by adding the above code to the manifest file like this: <activity android:name=".BT_activity_host"... ...android:screenOrientation="portrait"></activity> Cheers!
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
04/12/14 02:12 PM (10 years ago)
Yay! :-)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.