开发者

Battery charging notification

Can we receive notification if phone bat开发者_如何学运维tery 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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜