It is difficult, because attaching to USB keeps a wake lock held.
You can use adb shell dumpsys batteryinfo to see the current stats about
your app, which includes the time spent holding each wake lock. (You'll
probably want the last section of output, which is the time since last
unplugged.)
My application acquires and releases WakeLocks. What is the best way
to test the app - i.e. is there a standard way to determine when the
cpu is running (e.g. through a debug cable)?
Thanks,
Tom
--
You received this message because you are subscribed to the Google
Groups Android Developers
2 matches
Mail list logo