how to put android on low power state

2.5k views Asked by At

i have a highly data computation intensive application that has to process data received via bluetooth every 60 seconds and then stay in low power state for the next 60 seconds. i checked out the PowerManager api but i am unable to use it. is there a way i could accomplish the task?

2

There are 2 answers

5
CommonsWare On BEST ANSWER

You cannot "put android on low power state". Android naturally will go into a sleep mode after a period of inactivity, if nothing is holding a WakeLock to force the CPU to stay running.

0
Nik On

You can use PowerManager goToSleep() method to "force the device to go to sleep. Overrides all the wake locks that are held": http://developer.android.com/reference/android/os/PowerManager.html#goToSleep%28long%29