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

Web and WebWorks Development

Reply
New Contributor
yogeshwaran
Posts: 7
Registered: ‎03-06-2012
My Device: Blackberry Playbook
Accepted Solution

Lock screen orientation

How to lock screen orintation in a Blackberry 10 webworks applicaiton ? I want my app to stay in portrait mode always.

 

BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: Lock screen orientation

Check out the param/orientation config.xml element here:
https://developer.blackberry.com/html5/documentation/param_element.html

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Developer
SumiGhosh
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380

Re: Lock screen orientation

<feature id="blackberry.app.orientation">
<param name="mode" value="portrait" />
</feature>