I was wondering if there is a way to measure power(a battery level) of android device.. I can see applications doing something with a battery level of an Android device so I was wondering how I can get the battery level from Android APIs. Thanks in advance..
Asked
Active
Viewed 1,318 times
1
-
[Here](http://developer.android.com/reference/android/os/BatteryManager.html) is the API. – iCantSeeSharp Nov 07 '11 at 23:30
2 Answers
0
There's a broadcast receiver that tell you when the battery level changes. See this thread for code: Android Battery in SDK

Community
- 1
- 1

aleph_null
- 5,766
- 2
- 24
- 39