Android Question get charge or discharge Ampere of battery

ehsan2521

Member
hi
I want to show charging ampere in my app but i don't know how.
I checked PhoneEvents library but it doesn't work
please help me
thx
 

ehsan2521

Member
thanx Erel to answer
i checked this program it show all this battery information but doesn't show current (milliampere)

'EXTRA_LEVEL = current battery level, from 0 To EXTRA_SCALE.
'EXTRA_SCALE = the maximum battery level possible.
'EXTRA_HEALTH = the current health constant.
'EXTRA_ICON_SMALL = the resource ID of a small status bar icon indicating the current battery state.
'EXTRA_PLUGGED = whether the device is plugged into a Power source; 0 means it is on battery, other constants are different types of Power sources.
'EXTRA_STATUS = the current status constant.
'EXTRA_TEMPERATURE = the current battery temperature.
'EXTRA_VOLTAGE = the current battery voltage level.
'A value indicating if the battery is being charged or fully charged (If neither it returns 0 Else it returns 1)
'A value indicating if it is charging via USB (0 = Not USB, 2 = USB)
'A value indicating if it is charging via AC (0 = Not AC, 1 = AC)
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top