Filip,
The system panel does show battery consumed by the WiFi radio and the
display as separate entities.
I also think if you allow interaction while doing your test, then it's
not really clear what you are measuring (at least not clear to me).
A clean device (no 3rd party programs, disabled WiFi, etc.) left running
your program overnight should give a pretty good idea about how well
you're doing on battery consumption.
Then there is this - a battery monitor with historical data collection,
which provides per-application data not just for CPU, but also for WiFi
and cellular radios and display:
http://ziyang.eecs.umich.edu/projects/powertutor/
And in the "isn't it cool" category:
http://il.youtube.com/watch?v=Igwdd_8CwD4
-- Kostya
21.01.2011 16:49, Filip Havlicek пишет:
Kostya,
I'm pretty sure it shows up, but this kind of measurement is really
not precise - I need time-based values, ie "the application consumed
2,5% of total battery power after 1 hour of running", you can't really
take any values from the application list, because they are influenced
by other applications running (for example if during one of the tests
the display is on a bit longer cause some application decided to wake
up the phone, or the GSM/wifi signal gets weak so the device has to
scan more for appropriate signal(s), it might seriously change the
results - more battery usage of one application automatically means
less for all other application on that screen).
Thanks for your reply.
Best regards,
Filip Havlicek
2011/1/21 Kostya Vasilyev <[email protected] <mailto:[email protected]>>
Filip,
If your application doesn't show in the phone's battery usage
list, I believe this means that it uses so little that its usage
comes out as zero due to limited measurement precision. In that
case, you have nothing to worry about.
You can test if this is the case by adding wake locks just for
testing purposes, and checking if this causes your app to appear
on the list.
-- Kostya
21.01.2011 5:57, DanH пишет:
Should not be at all hard to use, eg, a piece of wood of the right
shape to fit into the battery compartment, to hold contacts in
place.
Phone could be supplied from an external power source or the
battery,
with some sort of jury-rigged holder. Shouldn't require
modifying the
phone in any way.
On Jan 20, 6:47 pm, Filip Havlicek<[email protected]
<mailto:[email protected]>> wrote:
I have to return the device unharmed and you know what are
those hardware
guys doing with our precious toys :) They are good in
building stuff, but
not returning it to its previous state :)
2011/1/20 DanH<[email protected] <mailto:[email protected]>>
Certainly any competent hardware hacker could lash
together a testbed
to measure battery draw. Of course the phone would be
wired to a
workbench, and the data collected would have to be
time-correlated
with the testing activities, but not rocket science.
On Jan 20, 4:00 pm, Filip
Havlicek<[email protected]
<mailto:[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]
<mailto:[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]
<mailto:[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]
<mailto:[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]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:android-developers%[email protected]><android-developers%[email protected]
<mailto:android-developers%[email protected]>>
<android-developers%[email protected]
<mailto:android-developers%[email protected]><android-developers%[email protected]
<mailto:android-developers%[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]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:android-developers%[email protected]><android-developers%[email protected]
<mailto:android-developers%[email protected]>>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev -- WiFi Manager + pretty widget --
http://kmansoft.wordpress.com
--
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]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:android-developers%[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
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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