Context.StartActivity Context.StartActivity Method

Definition

Overloads

StartActivity(Intent, Bundle) StartActivity(Intent, Bundle)

Launch a new activity.

StartActivity(Type) StartActivity(Type)
StartActivity(Intent) StartActivity(Intent)

Same as StartActivity(Intent, Bundle) with no options specified.

StartActivity(Intent, Bundle) StartActivity(Intent, Bundle)

Launch a new activity.

[Android.Runtime.Register("startActivity", "(Landroid/content/Intent;Landroid/os/Bundle;)V", "GetStartActivity_Landroid_content_Intent_Landroid_os_Bundle_Handler", ApiSince=16)]
public abstract void StartActivity (Android.Content.Intent intent, Android.OS.Bundle options);
abstract member StartActivity : Android.Content.Intent * Android.OS.Bundle -> unit

Parameters

intent
Intent Intent

The description of the activity to start.

options
Bundle Bundle

Additional options for how the Activity should be started. May be null if there are no options. See ActivityOptions for how to build the Bundle supplied here; there are no supported definitions for building it manually.

Exceptions

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.

See also

StartActivity(Type) StartActivity(Type)

public void StartActivity (Type type);
member this.StartActivity : Type -> unit

Parameters

type
Type Type

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.

StartActivity(Intent) StartActivity(Intent)

Same as StartActivity(Intent, Bundle) with no options specified.

[Android.Runtime.Register("startActivity", "(Landroid/content/Intent;)V", "GetStartActivity_Landroid_content_Intent_Handler")]
public abstract void StartActivity (Android.Content.Intent intent);
abstract member StartActivity : Android.Content.Intent -> unit

Parameters

intent
Intent Intent

The description of the activity to start.

Exceptions

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