I want to register broadcast for low battery. If battery status reached at some level I want to get alert...
Please if you have any idea please help me..
I want to register broadcast for low battery. If battery status reached at some level I want to get alert...
Please if you have any idea please help me..
You will need to register a
BroadcastReceiver
forACTION_BATTERY_LOW
. You can do this in the manifest with a<receiver>
element or viaregisterReceiver()
from some already-running component of your application.For Battery_Status_Low, You could try registering it through a Service for example, like: