register a broadcastreceiver from a service or activity like this:
registerReceiver(myBatteryBroadcastReceiver, new
IntentFilter(Intent.ACTION_BATTERY_CHANGED));
then in the receiver call:
intent.getIntExtra("level",0);
this will get you the current battery-charge
Am 26.04.2010 11:49, schrieb subrat kumar panda:
Hi all,
How to show "Low Battery Alert" , when the battery power reduces to 15%.
anybody knows the solution regarding the problem
please help me.
i am not getting any desired document or any code.
Thanking you in advance,
Best Regards
Subrat Kumar Panda
India
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en