03-11-2010 01:59 AM
Hi guys !!!
Thanx for the support by you last time !!!
Now a days i'm working on custom status bar application.
In which i want to show battery status. When i lowers the battery in simulator and selects USB option, i get status as 5 from DeviceInfo.getBatteryStatus().
Can anybody tell me whats this status 5 is? Coz i checked API ref. there's no BSTAT value representing 5.
03-15-2010 04:26 PM
Could be the number of bars the battery has remaining. 90-100% = 5?
Just a guess,
03-18-2010 10:55 AM
Use DeviceInfo.getBatteryLevel() to get the battery power
getBatteryStatus() is used to retrieve information about is the battery charging, is it low, good etc., i.e. it returns a bitwise sum of DeviceInfo constants
check DeviceInfo constants for details