有没有办法以编程方式访问设置 – >关于电话 – >电池使用的东西?我们想要监控我们的应用程序使用的功率.
解决方法
Is there a way to programmatically access the settings->about phone->battery usage stuff?
唉,没有.
We’d like to monitor how much power our app is using.
优秀但有缺陷的答案是Qualcomm MDP与Trepn power profiler.唉,这是昂贵的,有a wholly inappropriate set of terms and conditions,恕我直言.
还有http://powertutor.org/和https://github.com/dvgrhl/BatteryCalibrator,虽然它们都不像Trepn那样复杂.