jacknad jacknad - 3 months ago 25
Android Question

Android power save mode listener?

How can an Android listener be created to perform a task just before entering power save mode? Also: what are some of the low power options that can be controlled by this task?

Answer

How can an Android listener be created to perform a task just before entering power save mode?

There is no broadcast Intent for this. The closest is ACTION_SCREEN_OFF. The device will likely fall asleep in the near future after you receive this broadcast. And, you can only listen for this broadcast using a BroadcastReceiver registered via registerReceiver() in an activity or service or other Context.

Also: what are some of the low power options that can be controlled by this task?

I have no idea what this means, sorry.

Comments