No, only when the target activity is designed to return any result,
you will be able to use it. Else, by default, the result is CANCELLED.

Thanks and Regards,
Kumar Bibek

On Apr 4, 3:05 am, milkbuns <[email protected]> wrote:
> Hello,
>
> How do I know whether a third party's sub-activity will call the
> setResult method to properly return an Intent with a URI as needed?
>
> If I didn't implement the sub-activity's method, then how do I ensure
> that it will return a result after I invoked the sub-activity by
> calling startActivityForResult?
>
> I had thought that the method startActivityForResult will always
> enable return of an Intent object from the sub-activity.  But, that
> appears not true.  Would it be possible that startActivityForResult
> could return absolutely no result whatsoever?  If so, how I program my
> Activity class to guard for such result?  Please advise because surely
> my class must prepare for the case if a result is returned.  Thanks.
>
> J.

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to