Similar to this link
I would like to know it if possible to somehow track battery even when my application is not turned on? My main aspects would be: 1) To get when battery was charged last time and how many %(level) it had then. 2) How many %(level) battery has discharged from its last time being charged.
My goal is: calculate roughly maybe, everytime battery level goes down with 1%. calculate how long it took to drop 1% then look how much % their is left. and do this check every 1%? Then I will be able to calculate time that is left for this battery :) Any help will be appreciated. :)