That's perfect, thanks Dianne. This is how it looks now for reference:

ActivityA
   startActivityForResult(intentB, 22);

ActivityB
   intentC.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT);
   startActivity(intentC);
   finish();

ActivityC
   setResult(99);
   finish();

I just had to modify ActivityB's call from startActivityForResult() to
startActivity() otherwise it throws an exception since that flag is
specified on the intent, but the error message is very descriptive and
excellent,

Thanks


On Mar 11, 12:07 am, Dianne Hackborn <[email protected]> wrote:
> In B, set this flag in the Intent you are starting:
>
> http://developer.android.com/reference/android/content/Intent.html#FL...
>
> On Thu, Mar 11, 2010 at 12:04 AM, Mark Wyszomierski <[email protected]>wrote:
>
>
>
>
>
> > Hi,
>
> > Is it possible to forward a result like the following?:
>
> > ActivityA
> >   startActivityForResult(intentB, 22);
>
> > ActivityB
> >   startActivityForResult(intentC, 22);
> >   finish();
>
> > ActivityC
> >   setResult(99);
> >   finish();
>
> > is it possible to get A's onActivityResult() to fire here and catch
> > the value 99 as the resultCode? B excuses itself from the stack, so
> > really A becomes the parent of C in this scenario.
>
> > Thanks
>
> > --
> > 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]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> 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

Reply via email to