Activity.StartActivityForResult Method

Definition

Overloads

StartActivityForResult(Intent, Int32)

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

StartActivityForResult(Type, Int32)
StartActivityForResult(Intent, Int32, Bundle)

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

StartActivityForResult(Intent, Int32)

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

[Android.Runtime.Register("startActivityForResult", "(Landroid/content/Intent;I)V", "GetStartActivityForResult_Landroid_content_Intent_IHandler")]
public virtual void StartActivityForResult (Android.Content.Intent? intent, int requestCode);
[<Android.Runtime.Register("startActivityForResult", "(Landroid/content/Intent;I)V", "GetStartActivityForResult_Landroid_content_Intent_IHandler")>]
abstract member StartActivityForResult : Android.Content.Intent * int -> unit
override this.StartActivityForResult : Android.Content.Intent * int -> unit

Parameters

intent
Intent

The intent to start.

requestCode
Int32

If >= 0, this code will be returned in onActivityResult() when the activity exits.

Attributes

Exceptions

Remarks

Java documentation for android.app.Activity.startActivityForResult(android.content.Intent, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

StartActivityForResult(Type, Int32)

public void StartActivityForResult (Type activityType, int requestCode);
member this.StartActivityForResult : Type * int -> unit

Parameters

activityType
Type
requestCode
Int32

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

StartActivityForResult(Intent, Int32, Bundle)

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

[Android.Runtime.Register("startActivityForResult", "(Landroid/content/Intent;ILandroid/os/Bundle;)V", "GetStartActivityForResult_Landroid_content_Intent_ILandroid_os_Bundle_Handler")]
public virtual void StartActivityForResult (Android.Content.Intent? intent, int requestCode, Android.OS.Bundle? options);
[<Android.Runtime.Register("startActivityForResult", "(Landroid/content/Intent;ILandroid/os/Bundle;)V", "GetStartActivityForResult_Landroid_content_Intent_ILandroid_os_Bundle_Handler")>]
abstract member StartActivityForResult : Android.Content.Intent * int * Android.OS.Bundle -> unit
override this.StartActivityForResult : Android.Content.Intent * int * Android.OS.Bundle -> unit

Parameters

intent
Intent

The intent to start.

requestCode
Int32

If >= 0, this code will be returned in onActivityResult() when the activity exits.

options
Bundle

Additional options for how the Activity should be started. See StartActivity(Intent, Bundle) for more details.

Attributes

Exceptions

Remarks

Java documentation for android.app.Activity.startActivityForResult(android.content.Intent, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to