Android

If you use RESULT_OK, onActivityResult() is not called.

tomato13 2013. 5. 23. 17:28

http://developer.android.com/reference/android/app/Activity.html

public void startActivityForResult (Intent intent, int requestCode)

Added in API level 1

Same as calling startActivityForResult(Intent, int, Bundle) with no options.

Parameters
intentThe intent to start.
requestCodeIf >= 0, this code will be returned in onActivityResult() when the activity exits.
Throws
android.content.ActivityNotFoundException


If you set the requestCode as RESULT_OK, you can't receive the callback data in onActivityResult() function. For RESULT_OK is -1.