Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
バッテリーが充電されてからの時間を取得する方法はありますか?
でそうする方法があるようには見えませんがBatteryManager、設定で表示されます。here sourceに表示されますが、それを取得する方法があるようには見えません。何か助けはありますか?
BatteryManager
ACTION_POWER_DISCONNECTEDのブロードキャストレシーバーをセットアップし、最後にブロードキャストされた時刻を追跡できます。