Re: [android-developers] Debugging power management - how to determine cpu state?

2010-08-30 Thread Dianne Hackborn
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.)

[android-developers] Debugging power management - how to determine cpu state?

2010-08-29 Thread Tom
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