Is there a way to programmatically access materials settings->about phone->battery usage ? We want to track how much energy our app uses.
settings->about phone->battery usage
Is there a way to programmatically access settings → about phone → using battery?
Unfortunately no.
We want to track how much energy our app uses.
An excellent but erroneous answer is Qualcomm MDP with Trpn Power Profiler . Alas, this is an expensive and completely unacceptable set of terms and conditions , IMHO.
There is also http://powertutor.org/ and https://github.com/dvgrhl/BatteryCalibrator , although they are not as complex as Trepn.