Menu
Sites
Language

Develop app with fixed orientation

This code shows how to develop application in which only vertical orientation page displayed independent of mobile movement.
1-st way:
use screen-orientation property for tizen:settings tag in config.xml
<tizen:setting screen-orientation="portrait" />

2-nd way:
use Screen Orientation W3C API to locking the screen to a specified orientation
screen.lockOrientation("portrait-secondary");

Responses

1 Replies
Marco Buettner

I recommend to use the 1st way for tizen application