ludo
ludo

Reputation: 1466

How to find battery usage of an application over time?

Currently I'm working on a study where I need to take accurate battery usage information of a particular application over some period of time. Is there any way of getting this information on Android and/or Windows Phone?

Upvotes: 1

Views: 465

Answers (3)

CommonsWare
CommonsWare

Reputation: 1007434

The closest you will be able to get to get "accurate battery usage information of a particular application over some period of time" will be to invest in a Qualcomm MDP device and use Trepn. The MDP series have special hardware instrumentation for detailed power measurement; the Trepn software package allows you to collect the results.

Upvotes: 2

Amokrane Chentir
Amokrane Chentir

Reputation: 30395

This is a very broad question. The short answer is that the SDK doesn't give you such information, so you will have to estimate it based on the behavior of the applications that you are monitoring.

Diane Hackborn, an Android framework engineer, already addressed this question here.

No [there is no API for looking for the battery usage details per application]. The way this is done is very complicated, using an ever-evolving set of measurements of various operations applications are doing and computing them against a device-specific power profile to construct the UI. This is only intended to provide rough estimates as shown in the UI, this is not a facility for applications to use.

Upvotes: 1

SamCyanide
SamCyanide

Reputation: 333

On android if you go to battery in system settings, you can see how much battery an application or service has used.

Upvotes: 1

Related Questions