Reputation: 48592
Hello I am trying to get status of battery of the device programmatically. So I am looking to get battery status that give idea whether it is fully charged or not. Any idea to achieve this ?
Upvotes: 2
Views: 2590
Reputation: 3727
Assuming you're programming for Android devices:
You should create a BroadcastReceiver
for the battery status. It's described as a tutorial here: http://developer.android.com/training/monitoring-device-state/battery-monitoring.html
I assume you already know how to program the Android via its API. If not, you have some things to learn first: http://developer.android.com/training/basics/firstapp/index.html
Upvotes: 2