Search code examples
htmlblackberry-10blackberry-webworks

forcing device orientation blackberry webworks bb10


i look for my html5 app is always in landscape, i read this Change the Screen Orientation in Blackberry? and Blackberry Force Screen orientation but the solutions are presented for java development on platforms oldest, the current blackberry 10. I want to js +html5


Solution

  • This is done in the config.xml file. Just add this...

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

    For more information you can visit the BlackBerry developer site which has a lot of docs, samples, and getting started guides.

    http://developer.blackberry.com/