Doing a background task with AsyncTask can be done in either Activity
or Service. Depends on what you're trying to do. For example,
something similar to downlaoding a web page, do in Activity as user is
likely to wait and nothing really lost if user swtiches to another
task. Something like checking for Flickr updates (as in Romain Guy's
photostream), do in Service, result in notifications.

-- 
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