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

Reply
Super Contributor
JeffLemon
Posts: 437
Registered: ‎01-13-2011
My Carrier: NA
Accepted Solution

orientation?

How do I get my app to open in landscape:

 

I've looked here:

 

https://developer.blackberry.com/cascades/documentation/dev/orientation/index.html

 

But opening bar descriptor file doesnt open the blackberry editor, just the text editor, whats the tag for orientation so I can enter it in the xml.

 

Cheers

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Please use plain text.
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Carrier: Rogers

Re: orientation?

Within the Native SDK go to your bar-descriptor.xml file and click under the tab application > orientation > portrait/landscape as desired.

 

Within XML file the code is:

 

<initialWindow>
<aspectRatio>portrait</aspectRatio>
<autoOrients>false</autoOrients>
<systemChrome>none</systemChrome>
<transparent>false</transparent>
</initialWindow>

 

You probably dont need all of that but thats what it automatically prints out


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Please use plain text.
Developer
Bluenoser
Posts: 254
Registered: ‎04-04-2012

Re: orientation?

[ Edited ]

If you right click on the bar-descriptor.xml, then you select Open With. Select the Blackberry Application Descriptior Editor. The menu remembers the last way that you opened the file and uses that the next time. You should see a dot beside the one that will be used with a double click.

 

Then go to the Application tab when it opens. There is where you will find Orientation.

Please use plain text.
Super Contributor
JeffLemon
Posts: 437
Registered: ‎01-13-2011
My Carrier: NA

Re: orientation?

@Bluenoser nope, this does not work, there's a bug withe the IDE.

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Please use plain text.
Developer
Bluenoser
Posts: 254
Registered: ‎04-04-2012

Re: orientation?

@JeffLemon. It works in my  Beta 3 IDE.

Please use plain text.