Search code examples
androidmobilebada

How to light up screen or turn screen on?


If screen is in off state, then how can I light up screen or turn screen on.

Answer for Android and Bada both are acceptable to me.

Thanks.


Solution

  • On android you'll need to use a PowerManager and get a WakeLock. You can have a look at this answer for an example of how to use it.