Ajay Singh
Ajay Singh

Reputation: 1621

Battery charging notification

Can we receive notification if phone battery is start charging? Whether power source is an AC charger or USB cable.

Upvotes: 1

Views: 2880

Answers (1)

Karan
Karan

Reputation: 12782

You can listen for the ACTION_BATTERY_CHANGED broadcast and check the power details using BATTERY_PLUGGED_[AC/USB] (Check details here).

Upvotes: 3

Related Questions