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

by westmeadboy » Tue, 13 Apr 2010 19:56:17 GMT


Sponsored Links
 Hmmm, so in that case, why does the device not sleep after the user
has used the power button to turn off the screen? Or do you mean that
the activity is still considered in the foreground even after that?






--



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

by westmeadboy » Wed, 14 Apr 2010 15:19:10 GMT


 So I tried this:

Start service
Press Home
Start some other 3rd party app (so that activity is in the foreground)
Press power button to blank screen

A few minutes later, I press the power button to unblank the screen
and discover the service finished successfully.

This means the phone never went to sleep...

Any ideas why?






--


Sponsored Links


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

by THill » Fri, 23 Apr 2010 01:52:44 GMT


 I've seen similar behavior as the OP.

I have a simple activity that starts a timer in onCreate, logging a
message every second.  No wake lock is requested, so after the time
indicated in setting, the device sleeps (allowed to dim, then sleep
naturally, not with power button press).  After letting it sit like
that for a few minutes, I plug it in via USB & check the logs, where I
can see the timer continued running through the sleep.

If I then do 'adb shell dumpsys power', the only wake locks shown are:
mLocks.size=2:
  SCREEN_DIM_WAKE_LOCK           'StayOnWhilePluggedIn Screen Dim'
activated (minState=1)
  PARTIAL_WAKE_LOCK              'StayOnWhilePluggedIn Partial'
activated (minState=0)

which makes sense since the device is now plugged in via USB.

Is this expected behavior?  Seems to go against the idea that all
threads are suspended during the sleep...

Thanks for any clarification,
Tim






--



Other Threads

1. adb can't list my attached device

Hi Dear,

i am trying to install an app to my Android Sony Ericsson Xperia
device but not able to connect it to adb.
i can access phone's sdcard drive in windows but "adb devices" command
doesn't show any device connected, not even through eclipse.

i figured out that i need to install device driver. tried android usb
driver but it doesn't seem to pick up for Xperia.
could anyone guide how can i connect my device to adb?

-- 

2. No new shopping site cargo does not order .. Download and use

http://al-ver.blogcu.com/


Sample

*2010 - The Antichrist Identity Full 3 Part
Series.<http://e1979vdu6qmte41ku8rlmnyoi3.hop.clickbank.net/>
*
Do Your Customers Want The Truth On 2012, The Antichrist And His Identity
Based On Recent Discoveries On The Covert Plans Of The Illuminati Who Are
Master Minding His Coming? A Unique, Fantastic Offer For Affiliates. 50%
Payout And Converts All The Time.

*The New World Order Assimilation
Dossier.<http://16bd5qax7qezdt9dt73bpj2nfl.hop.clickbank.net/>
*
Discover The Illuminati Secrets Of The New World Order.


*Grassroute Guide: Leadership Training For Non Profit
Organizations.<http://73e78zhs7rkzd7c128wftoyctd.hop.clickbank.net/>
*
New 120 Pg How-To E-Book & 45 Min Download Video. An Explosion Of Local
Group Organizing To Independently Meet Community Needs. Communication
Skills, Team Building. Strong Website, Ad Copy, Graphics, Free Videos And
Articles. www.grassrouteguide.com



*The New World Order Assimilation
Dossier.*<http://d8807xho5yewa7b916wlklqcre.hop.clickbank.net/>
Discover The Illuminati Secrets Of The New World Order.


*2012 - The Antichrist Identity Full 3 Part
Series.<http://d6472tercrb2a619w3oftj2qi2.hop.clickbank.net/>
*
Do Your Customers Want The Truth On 2012, The Antichrist And His Identity
Based On Recent Discoveries On The Covert Plans Of The Illuminati Who Are
Master Minding His Coming? A Unique, Fantastic Offer For Affiliates. 50%
Payout And Converts All The Time.




http://al-ver.blogcu.com/

-- 

3. Current issues with ipv6

4. Add Columns inTableLayout dynamically

5. How to trigger phone touch lock

6. How can I integrate proprietary JPEG and MJPEG decoder into PacketVideo OpenCore architecture?

7. HttpClient. How to debug it