start Activity For Result
Launch an activity for which you would like a result when it finished.
Parameters
activity
An activity for receiving the result.
requestCode
If >= 0, this code will be returned in onActivityResult() when the activity exits.
Throws
fun startActivityForResult(activity: Activity, requestCode: Int, options: Bundle)
Content copied to clipboard
Launch an activity for which you would like a result when it finished.
Parameters
activity
An activity for receiving the result.
requestCode
If >= 0, this code will be returned in onActivityResult() when the activity exits.
options
Additional options for how the Activity should be started. See {@link android.content.Context#startActivity(Intent, Bundle)} Context.startActivity(Intent, Bundle)} for more details.