Can we receive notification if phone battery is start charging? Whether power source is an AC charger or USB cable.
You can listen for the ACTION_BATTERY_CHANGED broadcast and check the power details using BATTERY_PLUGGED_[AC/USB] (Check details here).
1.4m articles
1.4m replys
5 comments
57.0k users