Partager via


Fragment.StartActivity Method

Definition

Overloads

StartActivity(Intent, Bundle)

Call Activity#startActivity(Intent, Bundle) from the fragment's containing Activity.

StartActivity(Intent)

Call Activity#startActivity(Intent) from the fragment's containing Activity.

StartActivity(Intent, Bundle)

Call Activity#startActivity(Intent, Bundle) from the fragment's containing Activity.

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

Parameters

intent
Intent

The intent to start.

options
Bundle

Additional options for how the Activity should be started. See android.content.Context#startActivity(Intent, Bundle) Context.startActivity(Intent, Bundle)} for more details.

Attributes

Remarks

Call Activity#startActivity(Intent, Bundle) from the fragment's containing Activity.

Java documentation for android.app.Fragment.startActivity(android.content.Intent, android.os.Bundle).

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

StartActivity(Intent)

Call Activity#startActivity(Intent) from the fragment's containing Activity.

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

Parameters

intent
Intent

The intent to start.

Attributes

Remarks

Call Activity#startActivity(Intent) from the fragment's containing Activity.

Java documentation for android.app.Fragment.startActivity(android.content.Intent).

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