Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.
How to check if the backlight is off and how to turn it on
S60 3rd Edition FP2
S60 3rd Edition FP1
S60 3rd Edition (initial release)
This snippet demonstrates how to check whether the screen backlight is off and how to turn it on. This snippet can be self-signed.
If the phone is inactive for a certain period, the backlight will turn off automatically to save battery power. In some cases, this operation could be disturbing, for example, during navigation.
//necessary header file
//retrieve EBacklightState value
HAL::Get( HALData::EBacklightState, backlightState );
//backlight is ON now.
//backlight is Off now.
//ResetInactivityTime will reset all user inactivity timers and backlight
//will be turn on
Screen backlight will be turned on.