Languages

Menu
Sites
Language
How to Screen On the gear S when it is off?

Hi, 

I'm trying to develop alarm launcher in gear S.

Simple scenario is that:

-------------------------------------------------------------------------

1. Select the Alarm time.

2. Select the day which user want to alarm.

3. When the time become selected alarm time, gear vibrate and notify.

-------------------------------------------------------------------------

It look so simple, but I have a trouble in developing.

How can I screen on the gearS when gear is off?

 

I already enrollde privilege     <tizen:privilege name="http://tizen.org/privilege/alarm"/> and    <tizen:privilege name="http://tizen.org/privilege/power"/>.

Also, I add the alarm time in tizen.alarm.

When change my code tizen.power.turnScreenOn -> tizen.power.turnScreenOff , and that It works perfect, but when screen is off and use turnScreenOn, 

it doesn't work.

 

How can I screen on the gearS when gear is off? Please help me. thanks.

 

Responses

1 Replies
AVSukhov

Hello,

Try to request power CPU_AWAKE state before turn on screen.