Ajay S
Ajay S

Reputation: 48592

Alarm when battery get full charged

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

Answers (1)

poplitea
poplitea

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

Related Questions