Languages

Menu
Sites
Language
How to make display on the device is not screen off

 

Can anybody give an example of this in production code, or project.

 

developer.tizen.org/dev-guide/2.2.1/org.tizen.web.device.apireference/tizen/power.html#setScreenStateChangeListeneridp155688

Screen on

developer.tizen.org/dev-guide/2.2.1/org.tizen.web.device.apireference/tizen/power.html#turnScreenOnidp189624

 

Throw it off here, please.

 this exemple NOT WORK  http://forums.gamesalad.com/discussion/63655/tizen-workaround-keep-the-device-screen-on-without-touch-input

Preferences there is no entry with the name force-screen-on.

I have got privileges/power already.

 Thanks

Responses

4 Replies
Mohammad Nur Nobi

Please use below function to keep device's screen ON always:

tizen.power.request("SCREEN", "SCREEN_NORMAL");

Required privilege(in config.xml): http://tizen.org/privilege/power

To go back to default behavior of the phone, please use below function:

tizen.power.release("SCREEN"); // Release SCREEN resource.

 

To check more, you can check Tizen Developer Site.

Byung geun Lee

Is this code possible to use in wearable web application?

AVSukhov

Hello,

According documentation this web API supported for both (mobile and wearable) profiles.

Byung geun Lee

This code also available in web application.

Thanks!