Discussion Forums  >  Uncategorized

Replies: 4    Views: 140

Zackamo
Aspiring developer
Profile
Posts: 175
Reg: Oct 25, 2011
Bryan TX
3,400
02/03/12 05:04 PM (12 years ago)

Prevent Landscape in BT 1.5+ (Android)

I know there are several threads on fixed orientation, but none that I could find specifically spoke about Android, and preventing rotation there. Goal - force portrait. Any Thought? Obviously the BT_Layout for the iphone doesn't exist. I think I need to tweek something in BT_Device and or BT_activity_base Any help would be greatly appreciate. Again sorry if this has been directly posted, but searched for awhile. I posted in an older thread but it doesn't look like it actually resurfaced. So I decided to create a new thread, which might help others looking for specifically android information on this problem.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/03/12 09:38 PM (12 years ago)
Under App Core Properties there is a section called Allow / Prevent Rotation (landscape, portrait). Does that only apply to iOS? Or, you could add android:screenOrientation=portrait to the element in AndroidManifest.xml file. http://stackoverflow.com/questions/2730855/prevent-screen-rotation-android Mark
 
Zackamo
Aspiring developer
Profile
Posts: 175
Reg: Oct 25, 2011
Bryan TX
3,400
like
02/05/12 02:10 PM (12 years ago)
Core Properties does not effect android. However by adding android:screenOrientation=portrait to every activity in my manifest, it does appear like I have prevented rotation. Thanks for the help, and hopefully others will find this thread useful.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/05/12 03:05 PM (12 years ago)
Excellent! Glad you got it working! Mark
 
Bigfishtools
I hate code!
Profile
Posts: 152
Reg: Dec 06, 2011
benicia, ca
1,520
like
02/15/12 02:52 PM (12 years ago)
Thanks for this guys
 

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.