Not using a WakeLock so why does the device stay awake?

by Dianne Hackborn » Wed, 14 Apr 2010 15:36:31 GMT

Sponsored Links
 Use this to see what wake locks are being held in user space:

adb shell dumpsys power

Note that the device never goes to sleep while plugged in to USB.  Also the
system will never hold a wake lock for you just because you have an activity
or service running.  You can have it do so for you in an activity via
FLAG_KEEP_SCREEN_ON in a window, and the alarm manager will temporarily hold
one for you while sending an alarm broadcast to a broadcast receiver.


Not using a WakeLock so why does the device stay awake?

by Dianne Hackborn » Fri, 23 Apr 2010 01:59:22 GMT

 It is possible for the kernel to hold wake locks for various reasons.  If
you want to see what was holding wake locks while you were unplugged, use
"adb shell dumpsys batteryinfo" and look at the last set of stats (this is
the raw information used to generate the battery usage UI).  However the
kernel wake lock information is extremely hard to understand, and
unfortunately I can't say for sure off-hand how to interpret it. :}


Sponsored Links

Other Threads

1. From XML schemas to Android-Java classes for optimizing XML parsing and browsing

My application has to handle many XML documents based on various XML
schemas (XSD). I am looking for tools/libraries, running on Android,
and that enable to convert efficiently XML docs into Java objects
based on a pre-generated classes from XSD shemas (equivalent of xml-
beans? castor? JiBX?) ?? For instance, I parse and browse XML thanks
to Android parsers, but are there any XML cool tools?
I tried JiBX on Android, without sucess. Does someone?





2. Anybody create local app in android source code?


Does someone create the local app in source code?(Not sdk)
Then modify the makefile, and "make sdk".
The local app will be the build-in app.
I tried, but failed.
Any steps to share with me?



3. How to get class to do unit performance test?

4. HTTPS + Sync Ajax == Frozen Cupcake Browser

5. Google app for you domain

6. Android Mediaplayer setdatasource(String) issue

7. Receive notification for onDestroy, onStop, and onPause etc in other applications?