On Wed, Jun 23, 2010 at 7:24 PM, Federico Paolinelli <[email protected]> wrote:
> If I understood correctly, I need to bind to the service in order to
> provide it a listener, and then if I want to use the onProgressUpdate
> for an AsyncTask started from the service, I should notify the
> listener from the onProgressUpdate call. Is it correct?

That is certainly one approach.

> I thought that the standard way to update the ui from a service was to
> send an Intent (but in this way I wouldn't be aware of the state of
> the activity).

That is another approach. I am not sure that I would necessarily cal
it the "standard way", but you are certainly welcome to do that. In
that case, the service would broadcast the Intent, and if an activity
picks it up, great.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.6 Available!

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