Muhammad Shahab
Muhammad Shahab

Reputation: 4270

Android -- How can we determine the Battery Usage statistics per application?

I am having trouble finding a class or API in Android documentation that would help me get battery usage statistics per application.

I have read PowerManager and BatteryManager classes but they are of no use.

However, I can find applications like PowerTutor that do provide battery usage statistics per application, so I think it's technically possible.

Can any one point me in right direction?

Upvotes: 1

Views: 3839

Answers (1)

Stephen C
Stephen C

Reputation: 718678

I'd be surprised if such an API exists. Rather, I expect that PowerTutor is using some sampling heuristics to estimate how much of the current battery usage to blame on each application.

Upvotes: 1

Related Questions