Intent.MakeMainActivity(ComponentName) Method

Definition

Create an intent to launch the main (root) activity of a task.

[Android.Runtime.Register("makeMainActivity", "(Landroid/content/ComponentName;)Landroid/content/Intent;", "", ApiSince=11)]
public static Android.Content.Intent MakeMainActivity (Android.Content.ComponentName mainActivity);
static member MakeMainActivity : Android.Content.ComponentName -> Android.Content.Intent

Parameters

mainActivity
ComponentName

The main activity component that this Intent will launch.

Returns

Intent
Attributes

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

See also