From An Android Service, How To Determine Whether Screen Was On Or Off
From an Android service (for example at onCreate time) how can I determine whether screen was on or off before receiving the first broadcast screen intent (that may never be trigge
Solution 1:
If you want to test if the screen is on, you can use http://developer.android.com/reference/android/os/PowerManager.html#isScreenOn() .
Post a Comment for "From An Android Service, How To Determine Whether Screen Was On Or Off"