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. 

'Android' 카테고리의 다른 글

RGB 컬러코드 int로 파싱하기  (0) 2013.07.05
How to set a border to an imageview  (0) 2013.07.03
HOW TO DEBUG ANDROID WIDGETS  (0) 2013.05.18
Custom view 생성  (0) 2013.05.17
SurfaceView in Layout  (0) 2013.05.14