Android的 - 我们如何确定每个应用程序的电池使用情况统计信息? [英] Android -- How can we determine the Battery Usage statistics per application?
问题描述
我无法找到一个类或API在Android中的文件,这将有助于我把每个应用程序的电池使用情况统计。
I am having trouble finding a class or API in Android documentation that would help me get battery usage statistics per application.
我读电源管理器
和 BatteryManager
类,但他们是没有用的。
I have read PowerManager
and BatteryManager
classes but they are of no use.
不过,我可以找到像PowerTutor那些提供每个应用程序的电池使用统计应用程序,所以我认为这是技术上是可行的。
However, I can find applications like PowerTutor that do provide battery usage statistics per application, so I think it's technically possible.
任何一个可以点我在正确的方向?
Can any one point me in right direction?
推荐答案
我会,如果这样的API的存在感到惊讶。相反,我希望PowerTutor使用一些采样启发式估计多少当前电池使用的指责对每个应用程序。
I'd be surprised if such an API exists. Rather, I expect that PowerTutor is using some sampling heuristics to estimate how much of the current battery usage to blame on each application.
这篇关于Android的 - 我们如何确定每个应用程序的电池使用情况统计信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!