Is there a way to retrieve the the amount of time since the battery has been charge开发者_运维百科d?
It doesn't appear like there is a way to do so with BatteryManager
, but they show it to you in the settings. I see it here source , but it doesn't appear like there is a way to grab it. Any help?
You can setup a broadcast receiver for ACTION_POWER_DISCONNECTED, and keep track of the last time it was broadcast.
精彩评论