【问题标题】:How can we calculate/ to know, how much battery life my user defined application utilising?我们如何计算/知道我的用户定义的应用程序使用了多少电池寿命?
【发布时间】:2014-03-12 06:36:25
【问题描述】:

我的问题是,我们能否确定我的 android 应用程序使用了多少电池寿命。因为我开发了一个基于 GPS 以及网络、服务、广播接收器的应用程序,所以我有电池耗尽的问题,所以首先我想知道我的应用程序使用了多少电池百分比。任何的想法。 提前致谢。

【问题讨论】:

标签: android gps location battery batterylevel


【解决方案1】:

很难确切地说特定应用程序使用了多少电池寿命。但是,您可以参考以下链接,这可能会给您一些想法。

http://www.androidcentral.com/new-google-services-uses-more-battery-old-and-google-needs-fix-battery-screen-already

http://lifehacker.com/5990553/betterbatterystats-tells-you-exactly-which-apps-are-draining-your-androids-battery

http://www.howtogeek.com/139592/how-to-find-the-root-cause-of-your-android-battery-problems/

以编程方式,您需要在自己的应用程序中维护应用程序的 BatteryManager 日志。

关于 GPS、网络、服务、广播接收器等的电池使用,这取决于您如何实现它。例如:-使用被动提供者而不是 GPS 或网络提供者也使用 setinexactrepeating 方法进行警报管理器等。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-05-10
    • 1970-01-01
    • 2019-12-02
    • 1970-01-01
    • 2022-10-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多