2

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

4

1 回答 1

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 方法进行警报管理器等。

于 2014-03-12T07:04:30.837 回答