Android.Content.Intent.MakeMainSelectorActivity Method
Make an Intent for the main activity of an application, without specifying a specific activity to run but giving a selector to find the activity.

Syntax

[Android.Runtime.Register("makeMainSelectorActivity", "(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;", "")]
public static Intent MakeMainSelectorActivity (string selectorAction, string selectorCategory)

See Also

Intent.Selector

Parameters

selectorAction
The action name of the Intent's selector.
selectorCategory
The name of a category to add to the Intent's selector.

Returns

Documentation for this section has not yet been entered.

Remarks

Make an Intent for the main activity of an application, without specifying a specific activity to run but giving a selector to find the activity. This results in a final Intent that is structured the same as when the application is launched from Home. For anything else that wants to launch an application in the same way, it is important that they use an Intent structured the same way, and can use this function to ensure this is the case.

The returned Intent has Intent.ActionMain as its action, and includes the category Intent.CategoryLauncher. This does not have Intent.FLAG_ACTIVITY_NEW_TASK set, though typically you will want to do that through Intent.AddFlags(ActivityFlags) on the returned Intent.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 15