Discussion Forums  >  Self Hosted Control Panels

Replies: 13    Views: 75

Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
10/13/13 01:14 PM (12 years ago)

Android Screen Rotation

Anybody know how to prevent screen rotation on android. I am using CR_Menu_Advanced and I want no rotation. The screen should remain in portrait mode. Joe
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
10/13/13 01:18 PM (12 years ago)
Add android:screenOrientation="portrait" to the element in the manifest or landscape and you're done.
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
10/13/13 01:32 PM (12 years ago)
@cookup New Core 3.0 Can you grab some manifest code and show me. The new core manifest is different it looks like it's tied to the BT_activity_host. really need to lock it down if you a couple secs to grab some code Thanks Joe
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
10/13/13 02:04 PM (12 years ago)
I think if you add it to bt activity host it should work. Since that is the only activity holding the screen fragments.
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
10/13/13 02:09 PM (12 years ago)
<activity android:name=".BT_activity_host" android:configChanges="keyboardHidden|orientation|screenSize" android:label="@string/app_name" android:screenOrientation="portrait" android:theme="@style/hostThemeWithTitle" android:uiOptions="splitActionBarWhenNarrow" > </activity>
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
10/13/13 02:10 PM (12 years ago)
dont know if that helps or not
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
10/13/13 02:11 PM (12 years ago)
i am looking now. I think you are on it line 570-576 I will experiment. Thanks for the help Cook up Joe
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
10/13/13 02:12 PM (12 years ago)
I will post when I get it complete for everybody
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
10/13/13 02:15 PM (12 years ago)
Anytime! Buzztouch is awesome!
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/11/14 03:39 AM (11 years ago)
Any luck? I am trying to do the same thing.
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/11/14 03:52 AM (11 years ago)
I got it done on a new app for a client but I forgot where it is in the code. Let me look at the project and I will post. I am working on something at the moment but I will post what I did at some point just need some time. Thanks for bringing this thread back to my attention so I can share. LOL I just have to remember what I did LOL Joe Sprott Bodacious Media
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/11/14 03:58 AM (11 years ago)
Cheers Joe, appreciated. I found out how to lock a whole BT 3.0 app, but not individual screens. Alan
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/11/14 04:02 AM (11 years ago)
@Alan sorry man I miss understood. I just locked down the entire app from rotation not individual screens. Although that interest me but at the moment no answer for individual screens. I should also post the rotation answer later for others Joe Sprott Bodacious Media
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/12/14 05:27 AM (11 years ago)
 

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.