BharathVishal / BatteryStats-for-Android

Displays all battery stats of an Android device using broadcast receiver. Fully implemented in Jetpack compose using Material You dynamic theming and also has a separate implementation in xml with MDC 3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Feature Reamining time of battery

hafizijaz656 opened this issue · comments

All Features are good but in this.Can you add the remaining time of battery according to the charge

Hi,
Thanks for your suggestion and feedback. As of now there isn't a native Android API to calculate the remaining battery time and this has to be done through our own implementation.
Calculating the remaining battery time includes some sort of estimation based on the battery drain between timed intervals and other parameters like recent running apps, battery capacity in mAH, battery health, current battery voltage etc. I can implement an estimator in the future release.
Also, an API to calculate remaining time to charge fully is available only to devices running Android Pie(API 28) and above.