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

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums on April 1st. 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


Reply
Contributor
Posts: 13
Registered: ‎04-11-2012
My Device: Blackberry Playbook, Blackberry 10 Dev Alpha
My Carrier: None
Accepted Solution

BB10 Dev Alpha landscape orientation

[ Edited ]

Hey there,

 

I'm looking to have a landscape application for both playbook and BB10DA (BB10 Dev Alpha). On playbook it will default to landscape and everything is peachy. However when I run the same app on BB10DA the phone locks to a portrait orientation making the app behave strangely. The keyboard comes up portrait and the bezel gestures do too. I have my rendering and input adjusted thanks to Cocos2d-x but the OS needs to recognize that I want the phone to be in landscape only for this application.

 

Is there a way to do this currently?

 

- Xoorath

Highlighted
Contributor
Posts: 13
Registered: ‎02-17-2012
My Device: Torch 9600, Playbook
My Carrier: Rogers

Re: BB10 Dev Alpha landscape orientation

In your bar-descriptor.xml file you can add the following element inside <initialWindow>

 

<aspectRatio>landscape</aspectRatio>

 Which I believe should work.

Contributor
Posts: 13
Registered: ‎04-11-2012
My Device: Blackberry Playbook, Blackberry 10 Dev Alpha
My Carrier: None

Re: BB10 Dev Alpha landscape orientation

Fantastic sir. Thank you.