What is the java code to the following values from Android device
- the total number charge cycle till date
- the max charge level reached in last charge cycle
Tried to fetch total charge cycle using batteryStatus.getIntExtra(BatteryManager.EXTRA_CYCLE_COUNT,-1) but it returns 0
have you tried
EXTRA_CYCLE_COUNTon device with Android API 34 at least (so Android 14)? this param was just introduced, won't work on older devicespersonally I bet it won't work reliable on all devices with Android 14 (especially those which get 14 as update, not from factory), manufacturers should prepare their hardware for such feature