when my application get any event, I want to light the screen from black screen(power save mode).
How can I implement?
is there the APIs for this?
thanks.
when my application get any event, I want to light the screen from black screen(power save mode).
How can I implement?
is there the APIs for this?
thanks.
Have you searched for light already? In the SDK Help and/or the Wiki for example.
Class CHWRMLight may help you on this. see SDK for more info.
Apart from that if u also intend to avoid the screen light going off and keypad not getting locked, you can try setting inactivity timer like this:
between what is your use case scenario here ?Code:User::ResetInactivityTime();
Amit Kankani
Nokia Developer Champion
I set 20 seconds for Power save time-out and Light time-out.
so my phone goes to black screen(power save mode) after 20 seconds if there is no user action.
scenario is following:
-my application is running.
-once application get any event(according to appliaction logic), screen should be light sothat user can see the application directly.
so I tested with CHWRMLight, but LightOnL does not work(LightOffL works well).
CHWRMLight* iLight;
iLight = CHWRMLight::NewL();
iLight->LightOnL( CHWRMLight::EPrimaryDisplay);
please let me know how I can do.
thanks.
can u try this too ! I haven't tried it though !
"User::ResetInactivityTime();"
Amit Kankani
Nokia Developer Champion