Top "Android-powermanager" questions

Tag for Android PowerManager questions - class, that gives you control of the power state of the device.

Check if battery optimization is enabled or not for an app

Android 6 and 7 have some power optimizations (doze mode) which restrict app networking when device is not used. User may disable …

android powermanager android-powermanager
When does android device go to sleep mode?

I was searching SO and web but i couldn't find sufficient answer for my particular question. Ok here we go: …

android sleep-mode android-powermanager
Unlock the Screen Programmatically

I have a share button in the GCM notification. On click of the share button, I need to launch share …

android android-intent unlock keyguard android-powermanager
Force an android phone to sleep, in order to test?

I'm writing an android application that depends on network activity and the alarm manager sometimes waking the phone up from …

android sleep-mode android-powermanager
How can I programmatically turn off screen in android?

I want to turn off the screen when the user clicks a button. I am trying to do it with …

android android-powermanager
Continue Download in android even after the device is locked

How to continue download task even when after the device is locked (pressing the power button). I tried installing an …

android android-notifications android-wake-lock android-powermanager
How do I avoid that my App enters optimization on Samsung devices

Smart manager kills an app that hasn't been used for 3 days. My app does some background work and hence, the …

android android-5.0-lollipop android-powermanager
Is it possible to turn off tv device via android tv app?

For my example I create simple TV app add button "power off" and tried to shut down my emulator where …

android android-tv android-powermanager