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
Highlighted
New Contributor
Posts: 7
Registered: ‎03-06-2012
My Device: Blackberry Playbook
My Carrier: Vodafone
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.

 

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

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
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Re: Lock screen orientation

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