ScreenTime icon indicating copy to clipboard operation
ScreenTime copied to clipboard

Screen time since last full charge

Open ghost opened this issue 3 years ago • 2 comments

It would be nice to have an option to show the screen time since last full charge because the feature in Android usually resets after a few days. Hopefully this could work more reliably in this app than it does in Android.

ghost avatar Apr 19 '22 03:04 ghost

Well, this would require the app to constantly monitor the battery status, which is not a good idea as it itself affects battery consumption. See: https://developer.android.com/training/monitoring-device-state/battery-monitoring#MonitorLevel

There are just two system broadcasts we could listen to (without consuming more energy than we should): ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY. So there's no good way to know (exactly) when a full charge is reached, unfortunately.

But the app could listen to ACTION_POWER_DISCONNECTED. Would that make sense to you? To see the screen time since the last connection with the power cable? 🤔

markusfisch avatar Apr 19 '22 15:04 markusfisch

But the app could listen to ACTION_POWER_DISCONNECTED. Would that make sense to you? To see the screen time since the last connection with the power cable? 🤔

I think this would be good enough.

ghost avatar Apr 19 '22 18:04 ghost