언어 설정

Menu
Sites
Language
Orientation change Event not working because of Emulator?

Hi Everyone

I am runing a simple html css javascript from a native app.

I currently use CSS media querries so as a landscape-css applies when the terminal turns landscape.

But when I try it on the emulator, and go click right >> Rotate > Landscape, the landscape.css seems not to apply.
I tried to get the window.orientation status by javascript, and it always returns "0", meaning portrait.

What is wrong ??? Do I lack some piece of code, or is it an emulator related problem?

(PS : I enabled auto rotate screen in emulator's tizen settings but the problem remains.)

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

2 댓글
john Smith
Hi, From native we are trying to set the orientation using javascript. For this you have to use JavaScriptBridge, for more information https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.apireference%2FclassTizen_1_1Web_1_1Controls_1_1IJavaScriptBridge.html
Anusha Sajeendran
<tizen:setting screen-orientation=”auto-rotation” context-menu=”enable” background-support=”disable” encryption=”disable” install-location=”auto” hwkey-event=”enable”>

Hi, put this piece of code in your config.xml file.And also ensure that accelerometer, gyroscope and geo-magnetic checkboxes are checked in the emulator.