Tuesday, September 27, 2011

Re: [android-developers] Re: AsyncTask vs. IntentService

On Tue, Sep 27, 2011 at 6:00 PM, Streets Of Boston
<flyingdutchie@gmail.com> wrote:
> In addition to Mark's suggestions, you could assign a ResultReceiver to one
> of the Intent's extras:
> Your Activity could implemented this ResultReceiver's onReceiveResult
> method.
> Your IntentService could just call 'send(resultCode, resultBundle)' on it.
> This will cause the onReceiveResult at the Activity's side to be called.

Out of curiosity, do you know of a ResultReceiver sample anywhere? I
tried it once a while back and had difficulty with it.

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

Android 3.1 Programming Books: http://commonsware.com/books

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

No comments:

Post a Comment