Konubinix' opinionated web of thoughts

PowerManager  |  Android Developers

Fleeting

PowerManager  |  Android Developers

enable wakelock

PARTIAL_WAKE_LOCK Wake lock level: Ensures that the CPU is running; the screen and keyboard backlight will be allowed to go off

https://developer.android.com/reference/android/os/PowerManager

PROXIMITY_SCREEN_OFF_WAKE_LOCK Wake lock level: Turns the screen off when the proximity sensor activates.

https://developer.android.com/reference/android/os/PowerManager.html