Filip, later today I will link you all the work that I've done and the code. But basically what I wanted was the ability to see the power draw thru the battery at any time to compare different tasks that the phone does and its power consumption.
So I wrote an app that samples the battery's current draw and voltage thru the resistor every 2 seconds, and plotted that data on a graph. It gives a very fine detailed look at exactly what is hitting the battery. Then just run the app in background while you perform other tasks to see how each uses the battery. When I get to a computer I'll post the info. On Jan 20, 2:00 pm, Filip Havlicek <[email protected]> wrote: > Mark, that's exactly what I wanted to avoid, I'm not really sure someone > will find that money for me :) > > Prakash, yes, but you can't get that data programmatically, at least I > didn't figure out how. > > Roger, thanks, I considered looking for some solutions involving rooting the > phone, but since it isn't mine, I'm not sure my bosses would feel OK about > it. Nevertheless, could you elaborate more about that option? I mean > something like code samples, web links etc. If it would be easy enough to > get that data, I might be able to persuade them. > > Thank you for all your replies. > Best regards, > Filip Havlicek > > 2011/1/20 Roger Podacter <[email protected]> > > > > > there are ways to do what you want, at least on the nexus one, with > > just the battery, its driver, and the IC fuel gauge inside the > > battery. a recent project i've been playing with does just that, but > > it involved root access which is probably not what this forum is all > > about. nonetheless, for the sole purpose of gaining additional > > control and functionality from the battery, we did just that. > > > you can get real time power measurements across the sense resistor in > > the battery IC fuel gauge, and its accurate especially for what you > > would need. > > > but aside from all that pain to go thru, i dont think there are any > > other options that i know of. > > > On Jan 20, 7:29 am, Prakash Iyer <[email protected]> wrote: > > > 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" <[email protected]> wrote: > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-developers%2Bunsubs > > [email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

