Languages

Menu
Sites
Language
How to develop the application page to fix without rotating accoding to mobile movement

Hi,

I want to develop application in which only vertical page displayed independent of mobile movement.

hanks and regards

Mohit Kumar

 

 

t

Responses

4 Replies
AVSukhov

Hello,

You may use screen-orientation property for tizen:settings tag in your config.xml

<tizen:setting screen-orientation="landscape" />

or you may use Screen Screen Orientation W3C API to locking the screen to a specified orientation:

screen.lockOrientation("portrait-secondary");

 

Seoghyun Kang

Hello,

 

As AVSukhov's comment, there are two solutions.

 

1. Modify the screen-orientation option at the config.xml.

  (There are the following option values : Portrait / Landscape / Auto-rotation )

<tizen:setting screen-orientation="portrait" context-menu="disable" background-support="disable" encryption="disable" install-location="auto" hwkey-event="enable"/>

 

2. Modify the javascript source

screen.lockOrientation("portrait");

 

I recommend that you fix the config.xml. (1st way)

But if you have the plan to support other platform, it is the good way to modify the javascript source.

 

Please refer it.

 

ashish kumar

thank's

AVSukhov

Hello,

just fyi,

Screen Orientation Guide doc:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.guides/html/web/w3c/device/screen_orientation_w.htm

about configuration file:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.devtools/html/web_tools/config_editor_w.htm