android-Way of detecting low battery notification

2019-07-02 01:12发布

问题:

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