how can i know the phone‘s electricity consumption
all.i want to know the phone‘s electricity cost in my apps.but the Ba开发者_开发百科tteryManager can't give the information.how can i get this?
This information is not available via the Android SDK, sorry.
The only way to really know is to hook up a power meter to your hardware to measure the current draw while your app is running. The battery stats in the UI computed from an approximation over time based on the types of things the application is doing.
精彩评论