android-Way of detecting low battery notification

[亡魂溺海] 提交于 2019-12-10 19:25:50

问题


Is there a way to detect a low battery notification in android eclipse?I have an action game that needs to be paused when it appears.


回答1:


There is a tutorial in the official developers web about monitoring the battery level and charging state. I hope it helps you.

http://developer.android.com/training/monitoring-device-state/battery-monitoring.html




回答2:


This post might be help full look at that Battery Level Also look into this link Battery Level and State



来源:https://stackoverflow.com/questions/11361584/android-way-of-detecting-low-battery-notification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!