On Sat, May 23, 2009 at 12:50 PM, Michael Elsdörfer <[email protected] > wrote:
> From what I understand, a service must be used in any case to avoid ANR > when processing the request might take a bit longer. Oh sure, if you are going to do some longer-running -continuous- work then use a service. Don't use a service to sit there and do nothing but schedule future work (which is what you seemed to be describing in your first post). The widget example on the developer blog uses a service as well, but > does not call Service.stopSelf() when done. Hm. Bad sample code! No cookie! I'll see about getting that fixed. In the meantime, consider stopping a service when it is done with its work to be a Good Thing. :} -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

