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. How to set different color to fifth row of listview.

My listview is diaplying 5 rows.
When Control is on 1st or 2nd or 3rd or 4th row, I want to gray out
fifth row.
And when 5th row has control, first row should get grayed out.

please help me how to access fithrow or individual row and set their
background color.

Thanks in advance....
pratham

-- 

2. Converting android app to html/xml and css.

I know with utilites like phonegap etc we can convert our webapps into
native andorid apps.I was not sure if the opposite can happen(converting
android app into a web app).Please help with your suggestions if you have
come across any.

Thanks,DP

-- 

3. how to remove my error

4. Source code

5. new feature - Statistics in publisher console

6. RemoteServiceException (Nexus S SDK 2.3.2)

7. ListView flicker problem (cacheColorHint=#00000000 already set)