Re: [android-developers] Battery usage measurements

2011-01-20 Thread Prakash Iyer
On the phone there's is a what's been using the battery. This says display, contacts etc. I assume this is reasonably accurate on a process level... On Jan 19, 2011 9:33 PM, Mark Murphy mmur...@commonsware.com wrote: -- You received this message because you are subscribed to the Google Groups

[android-developers] Battery usage measurements

2011-01-19 Thread Filip Havlicek
Hi everyone, I have come to the point where I would like to optimize my application to consume as less power as possible. I tried to search for some battery API or something I could use to measure how much my application drains the battery when it's running, but didn't find anything. I thought I

Re: [android-developers] Battery usage measurements

2011-01-19 Thread Dianne Hackborn
The only way to really know how much battery is being used is to have hardware that measures actual current during various operations in your app. And that tells you about battery use for *that* device, which can have fairly different characteristics from another device. So I would suggest that

Re: [android-developers] Battery usage measurements

2011-01-19 Thread Filip Havlicek
Hi cullona, I know about that class, but don't see anything that could be actually useful in it (I really don't need to know if the device is plugged in etc). Hi Dianne, I know the general rules, but right know I would like to distinguish between some of the methods I have developed to achieve

Re: [android-developers] Battery usage measurements

2011-01-19 Thread Mark Murphy
If you have $1,000 that you found in your sofa cushions, the Qualcomm MDP may be of interest to you: http://developer.qualcomm.com/dev/development-devices/mdp8655 It offers the Trepn Profiler for deep info on battery consumption -- it appears to be roughly akin to what Traceview provides for CPU