Hi,

   I am wondering how the partial wake lock works on the G1?

   I am downloading stuff in the background and at some point in time  
the G1 shuts down and the downloading is resumed only after I wakeup  
the device. Very strange, because I am holding a PARTIAL_WAKE_LOCK  
that shouldn't let the CPU sleep, right?

   I am basically using what is in the documentation:

        PowerManager pm = (PowerManager)  
ctx.getSystemService(Context.POWER_SERVICE);
        PowerManager.WakeLock wl =  
pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
        
        wl.acquire();

        // download stuff

        wl.release();

   And in the download stuff section, which is running in a separate  
Thread, it suspend downloading after some time and resumes that when I  
wakeup the device by hand and navigate to the Activity that belongs to  
the same app is the Thread.

   Does this make any sense?

Cheers,
Mariano 
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to