How to get battery percentage based the timestamp in android?

148 views Asked by At

How to get battery percentage based the timestamp in android? Is that possible to get the battery percentage based on the date timestamps?

I'm trying to get the battery percentage based the time which I have spent time on the apps. In Android/Java Code snippet.

1

There are 1 answers

0
Konstantin Raspopov On

You cannot get battery percentage by timestamp, battery consumption depends on various factors. Here's how you can monitor the current battery level.