You need to call setResult before calling finish(), e.g.

setResult(RESULT_OK);
finish();

You can also pass data back to the previous activity using:

setResult(int, Intent);

On Feb 6, 6:24 am, jj <[email protected]> wrote:
> how to set RESULT_OK when activity exit?
>
> I am launching list activity from main activity using
> startActivityForResult, after doing work with list activity; i exit
> from it from it using "finish()" but it doesn't propagate RESULT_OK to
> main activity in  onActivityResult(), what should I do , so that
> listact should return RESULT_OK
>
> thank you
--~--~---------~--~----~------------~-------~--~----~
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