You cannot directly get these 2 keys by using KeyManager. you should use battery.setStateCallback and then in the stateCallback, you can check state.getFullChargeCapacity and state.getNumberOfDischarges.
Why I am unable to get FULL_CHARGE_CAPACITY and NUMBER_OF_DISCHARGES key values?
Followclose
Comments
0 comments
Please sign in to leave a comment.