android-检测低电量通知的方式 [英] android-Way of detecting low battery notification
本文介绍了android-检测低电量通知的方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在 android eclipse 中检测低电量通知?我有一个动作游戏,当它出现时需要暂停.
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.
推荐答案
官方开发者网站上有关于监控电池电量和充电状态的教程.希望能帮到你.
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/监控设备状态/电池监控.html
这篇关于android-检测低电量通知的方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文