On 03/29/2013 01:52 PM, RichardC wrote:
Does the other App call setResult() ?

Yeah, It's shown in the code below.

Thanks,

Tobiah

http://developer.android.com/reference/android/app/Activity.html#setResult(int)


On Friday, March 29, 2013 8:04:27 PM UTC, Tobiah wrote:

    I'm launching another app from my app like this:

    Intent LaunchIntent = 
getPackageManager().getLaunchIntentForPackage("com.other.appname");
    startActivityForResult(LaunchIntent, EXPOSMART_MESSAGE);

    Then I set a result from the launched app:

    Intent response = new Intent();
    response.putExtra("exit_flag", "y");
    setResult(RESULT_OK, response);
    finish();

    I was expecting onActivityResult() to get called in the original
    app, but it never does.  Is there something different about launching
    other apps rather than just new activities in the same app?

    Thanks!

    Toby

--
--
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
---
You received this message because you are subscribed to the Google Groups "Android 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.



--
--
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
--- You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to