0

I'm trying to design an app which changes it's behaviour according to battery draining rate. That is, there are two states state1 and state2. it checks for draining rate of each state. and switches over to the particular state which drains less battery.

so is it possible to check the draining rate of my app (in particular). ps: both the states use display and network connections.

if yes how can I get the draining rate?

I've noticed in the Battery options of android setting contains per app battery usage can I access these values?

4

1 回答 1

0

您有两个主要状态(LOW 和 OKEY)。但是,我认为您无法访问应用程序的电池使用统计信息。

您可以阅读:http: //developer.android.com/training/monitoring-device-state/battery-monitoring.html

IMO,你可以用它做你想做的事。

于 2014-03-23T08:34:12.330 回答