The Battery Manager specification defines a means for developers to programmatically determine the battery status of the hosting device.
The Battery Manager gives you information for Charging Time, Discharging Time, battery charge level and charging status.