Here my question is, can we identify, how much battery life my android application is utilising. Because I developed an app based on GPS as well as network, service, broadcast receivers, so I have battery drain problem, so first of all i want to know that how much battery percentage is my application using. Any idea. Thanks in advance.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
It is difficult to say exactly how much battery life is used by specific application. But, you can refer following links which may give you a little idea.
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/
Programmatically, you would need to maintain BatteryManager logs for your application in your app itself.
Regarding,battery uses of GPS,network, service, broadcast receivers etc. it depends on how you implement it. Eg:-Use passive providers rather than GPS or network providers also use setinexactrepeating method for alarm manager, etc.