实时的获取android手机的电量值.docx
有没有什么方法可以快速实时获取安卓手机的电量?在相机低电量的情况下开始预览时,会导致画面模糊。想到的解决方案是在相机开始预览之前判断电池电量。如果电池电量低,则禁止启动相机预览。这就要求在开始预览之前能够快速获取手机的电池电量。通过广播获取android手机的电池值太慢了。有没有什么好的方法可以快速实时获取android手机当前的电池值?
这是在android电池中获取DEMO:.........
(Is there any way to get the power of Android phones in real time?
When you start previewing when the camera is low, the picture will be blurred. The solution is to determine the battery level before the camera starts previewing. If the battery is low, the camera preview is disabled. This requires a quick access to the phone's battery power before starting the preview. It's too slow to get the battery value of Android phone through broadcast. Is there any good way to quickly obtain the current battery value of Android phones in real time?
This is to get demo from Android Battery:)
页:
[1]