liu
liu

Reputation: 47

how can i know the phone‘s electricity consumption

all.i want to know the phone‘s electricity cost in my apps.but the BatteryManager can't give the information.how can i get this?

Upvotes: 2

Views: 193

Answers (2)

hackbod
hackbod

Reputation: 91351

The only way to really know is to hook up a power meter to your hardware to measure the current draw while your app is running. The battery stats in the UI computed from an approximation over time based on the types of things the application is doing.

Upvotes: 1

CommonsWare
CommonsWare

Reputation: 1007524

This information is not available via the Android SDK, sorry.

Upvotes: 4

Related Questions