Search code examples
androidandroid-intentbatterymanager

Can you manually fire ACTION_BATTERY_LOW?


I'm relatively new to android programming but I'm told most applications have a receiver that will cut down on battery expensive activities when android fires ACTION_BATTERY_LOW.

Android developing page says: public static final String ACTION_BATTERY_LOW

Added in API level 1 Broadcast Action: Indicates low battery condition on the device. This broadcast corresponds to the "Low battery warning" system dialog.

This is a protected intent that can only be sent by the system.

Constant Value: "android.intent.action.BATTERY_LOW"

I was wondering if there was a way to send this intent manually, at any desired battery level. I have a rooted device if that makes a difference.


Solution

  • No. It's not possible. Check this post. Look into the answer given by Mark(commonsware).