Dylan Knowles
Dylan Knowles

Reputation: 2803

Viewing power consumption of Android app

There are dozens of questions related to fine-grained power monitoring in Android. Many of these use external tools and, as far as I can tell, it just isn't feasible yet to do so from within your average app. Is there any way to access the coarse grained value from the SDK instead? Android shows it in battery settings, e.g., "MyApp: 30%", but can apps directly read that value?

Upvotes: 0

Views: 276

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006554

Android shows it in battery settings, e.g., "MyApp: 30%", but can apps directly read that value?

Not through the Android SDK. There's probably a way to get that from some Linux /proc entry, but I don't know off the top of my head how.

Upvotes: 2

Related Questions