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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 5
Registered: ‎01-30-2011
My Device: Not Specified

Lock screen orientation to landscape mode

Hello,

 

i just want my app to run in landscape mode only. How can I lock the screen orientation on startup?

 

Thank you!

kind regards

Nick Weschkalnies

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Lock screen orientation to landscape mode

There's been several threads on this.  In your *-app.xml file, under <initialWindow>

 

<autoOrients>false</autoOrients>

<aspectRatio>landscape</aspectRatio>

Developer
Posts: 1,003
Registered: ‎01-16-2011
My Device: PlayBook (sim)
My Carrier: Rogers

Re: Lock screen orientation to landscape mode

In the *-app.XML file, make sure autoOrients is set to false.

<autoOrients>false</autoOrients>
(this is under initial window)
- If you like my response/post, or it helped you find an answer you were looking for, please provide a Kudo - white star to the bottom right of this post. -
- Please use the search bar at the top, or check out the PlayBook FAQ's for help getting started -
- Hockey DrillBook -
Developer
Posts: 216
Registered: ‎02-18-2010
My Device: 9350,8520
My Carrier: no

Re: Lock screen orientation to landscape mode

Can I test landscape mode on playbook simulator?

Developer
Posts: 229
Registered: ‎08-14-2009
My Device: Bold 9900, DevAlpha A
My Carrier: Vodafone DE

Re: Lock screen orientation to landscape mode

@OP, @Aman_vivek please see: http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/Playbook-FAQ/td-p/764647

 

 

Willy R.
-
If my post solved your problem, make it easier for others to find by Accepting it as a solution or provide a Kudo if it was helpful for you. Thanks.
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Lock screen orientation to landscape mode

 


Aman_vivek wrote:

Can I test landscape mode on playbook simulator?


 

Just in case you were confused about it, note that "landscape" mode refers to the one where the screen is wider than it is tall (like a landscape scene), whereas "portrait" mode refers to the one where the screen is taller than it is wide (like most portrait pictures of people).

 

Since the simulator defaults to landscape mode, as do 99% of the samples and apps we've ever seen for the PlayBook, I suspect you had those two mixed up...


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!