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