Thanks for the heads-up, I've seen the pattern before. I don't think I'll need it. The service don't really care if it's stopped by the device falling asleep, as long as it's not during it's processing phase in onHandleIntent where data may be written.
On Oct 19, 2:32 am, Mark Murphy <[email protected]> wrote: > On Mon, Oct 18, 2010 at 8:28 PM, Stakka <[email protected]> wrote: > > Thanks. I'll use a WakeLock in my IntentService.onHandleIntent. > > You may wish to consider my WakefulIntentService pattern: > > http://github.com/commonsguy/cwac-wakeful > > It will help you avoid the case where the device falls asleep between > the startService() call and onHandleIntent() being called. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

