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

BlackBerry® World™ Development

Reply
Contributor
Posts: 27
Registered: ‎02-17-2013
My Device: Developer-BB10
My Carrier: ---

Please HELP!!!Locking my app in portrait mode

My app doesn't work properly in landscape mode.So I need to lock it in portrait mode. Please help me by giving the necessary code as early as possible.

Developer
Posts: 173
Registered: ‎12-10-2012
My Device: Dev Alpha C
My Carrier: -

Re: Please HELP!!!Locking my app in portrait mode

What are you coding in? The answer will depend if it's cascades, android, webworks, etc.

 

For Webworks, put this in your config.xml:   <param name="orientation" value="portrait" />

For Phonegap, this should work (I think):   <preference name="orientation" value="portrait" />

 

For Cascades, someone else will have to answer.

 

Highlighted
Contributor
Posts: 27
Registered: ‎02-17-2013
My Device: Developer-BB10
My Carrier: ---

Re: Please HELP!!!Locking my app in portrait mode

Thank you very much for replying.I'm working on adobe air.