我怎样才能知道手机的电量消耗

发布于 2024-10-10 17:40:13 字数 63 浏览 0 评论 0原文

所有。我想在我的应用程序中了解手机的电费。但是 BatteryManager 无法提供信息。我怎样才能得到这个?

all.i want to know the phone‘s electricity cost in my apps.but the BatteryManager
can't give the information.how can i get this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

浮生未歇 2024-10-17 17:40:13

抱歉,此信息无法通过 Android SDK 获得。

This information is not available via the Android SDK, sorry.

回心转意 2024-10-17 17:40:13

真正了解情况的唯一方法是将功率计连接到您的硬件,以测量应用程序运行时的电流消耗。 UI 中的电池统计信息是根据应用程序正在执行的操作类型根据一段时间的近似值计算得出的。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文