Created
May 11, 2012 09:14
-
-
Save kyuucr/2658573 to your computer and use it in GitHub Desktop.
Android - Finish activity with result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intent data = new Intent(); | |
[...] | |
if (getParent() == null) { | |
setResult(Activity.RESULT_OK, data); | |
} else { | |
getParent().setResult(Activity.RESULT_OK, data); | |
} | |
finish(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment