0

1時間あたりのバッテリーの消耗をプログラムで計算する必要があります。たとえば、1 時間あたり平均 2% のバッテリー消耗です。

理想的には、各画面でこの値を計算するか、Froyo 以降のシャットダウン/再起動の直前に計算する必要があります。

この値を計算するための安価でバッテリー効率の良い方法は何ですか?

4

1 に答える 1

2

The Android Developer site has a page describing how to get information from the battery which includes determining the current battery level.

I suppose you could monitor the small changes and subsequently project what that would mean over a longer period of time. e.g. -0.05% per min = -3% per hour

于 2013-02-28T02:16:54.160 に答える