Languages

Menu
Sites
Language
Prevent screen off when covering gear S2 screen

Hi all,

I have a question regarding the gesture of covering your gear S2 with your hand. This gesture will usually turn the screen off.

 

The problem is, I am developing a game which uses this gesture in-game. This means, I need the screen to stay awake even though the players are covering their screen.

 

I have tried using device_power_request_lock(POWER_LOCK_DISPLAY, 0) (from https://developer.tizen.org/development/api-references/native-application?redirect=https://developer.tizen.org/dev-guide/2.3.1/org.tizen.native.mobile.apireference/group__CAPI__SYSTEM__DEVICE__POWER__MODULE.html ), but it seems that it cannot prevent screen from sleeping when the screen is covered.

 

Any help on how I can achieve this?

Responses

1 Replies
Nafisul Islam Kiron

Hi, I guess this cannot be done since the palm-covering gesture is universal to the Tizen OS. So, this cannot be overriden.

You can use another touch or sensor based gesture instead.