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. OOT - Transfer Bonus Simpati Turbo ke Kartu HaloPerlu Bukti Struk Pembelian Iphone dll?

Memang poin ini salah satu yang pengen saya garisbawahi, kenapa treatment 
sampai beda antara simpati/as dengan kartuHalo.

Yang kedua, kemarin setelah sang petugas CS menyampaikan persyaratan itu, saya 
minta kepada ybs untuk dicatat secara tertulis dan ditandatangani 
supervisornya, biar jelas aturannya, tp ybs menolak dengan alasan prosedur itu 
hanya kebijakan setempat (??).  

Sent from my BlackBerry
powered by Sinyal Kuat INDOSAT

-----Original Message-----
From: satrio <>
Date: Thu, 31 Mar 2011 13:14:13 
To: <>
Subject: Re: [id-android] OOT - Transfer Bonus Simpati Turbo ke Kartu Halo
 Perlu Bukti Struk Pembelian Iphone dll?

Untuk transfer bonus via sms hanya berlaku ke kartu simpati,
Untuk transfer bonus ke kartuHALO sekarang memang ada validasi pemilik
iPhone sesuai di database Telkomsel & tidak dapat diwakilkan




2. Android WebView problem

We are trying to develop an Android App which uses raw HTTP APIs for
login to a website. We are then using WebView & other HTTP APIs to
upload and download files from the website. The problem is that
WebView, and the subsequent calls using HTTP APIs, fail because the
website does not see the cookies. WebView simply lands to login page.

Have you experienced a similar issue before?  Else would you know how
to get around this issue?  If so please contact us, or reply to this
post, on how we could solve this.

Thank you,
Debarag Banerjee
WiViu Technology Inc.


3. Resources can't be loaded in a Open GL live wallpaper

4. Change group to "system"

5. Activity without GUI - Activity

6. encrypt/decrypt the data from content provider

7. Using the audio group