Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
Developer
bba
Posts: 266
Registered: ‎04-01-2009
Accepted Solution

Lock auto-rotation

Hello,

I have an app and want it to stay in horizontal mode. I am using this in the xml file:

 

<qnx>
  <initialWindow>
    <systemChrome>none</systemChrome>
    <transparent>false</transparent>
    <version>1.0.126</version>
    <autoOrients>false</autoOrients>		
    <aspectRatio>landscape</aspectRatio>
  </initialWindow>
  <publisher>xz</publisher>
  <splashscreen>splash.png</splashscreen>
  <permission>access_shared</permission>
  <icon>
  	<image>blackberry-tablet-icon.png</image>
  </icon>
</qnx>

 

but that app still rotates. i am using sdk 0.9.4.

 

Please use plain text.
Developer
jtegen
Posts: 6,535
Registered: ‎10-27-2010
My Carrier: Verizon

Re: Lock auto-rotation

You need to upgrade to 1.0.1 of the SDK/simulator. It might be a simulator issue.
Please use plain text.
Developer
peter9477
Posts: 6,447
Registered: ‎12-08-2010
My Carrier: none

Re: Lock auto-rotation

I've always had the orientation settings in my -app.xml file, not the blackberry-tablet.xml file. Never had a problem with them on earlier simulators.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
Developer
bba
Posts: 266
Registered: ‎04-01-2009

Re: Lock auto-rotation

yesss, that was the solution!

Please use plain text.
Contributor
newcomer9747
Posts: 22
Registered: ‎08-12-2011
My Carrier: Celcom

Re: Lock auto-rotation

Wow sems complicated. Any simpler method to lock the rotation?I like to use the torch while lying down on my side...

Please use plain text.
Developer
RottenOgre
Posts: 274
Registered: ‎11-01-2010
My Carrier: WiFi

Re: Lock auto-rotation

newcomer9747: This thread is referring to how devs can lock the rotation of their own apps.

 

Check something like this for how you as a user can lock your device's rotation.

Please use plain text.
Developer
peter9477
Posts: 6,447
Registered: ‎12-08-2010
My Carrier: none

Re: Lock auto-rotation

And if he's referring to the PlayBook (given that this is the PlayBook forum, at least until we see AIR on QNX phones), there's a convenient icon in the system tray (title bar on home screen) to let you lock the orientation. Talk about simple! :smileyhappy:

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Contributor
newcomer9747
Posts: 22
Registered: ‎08-12-2011
My Carrier: Celcom

Re: Lock auto-rotation

Oops sorry I'm surfing with the torch so didn't |notice this is a playbook forum. Sorry!
Please use plain text.