Android.Test.Mock.MockPackageManager.GetLaunchIntentForPackage Method
Returns a "good" intent to launch a front-door activity in a package.

Syntax

[Android.Runtime.Register("getLaunchIntentForPackage", "(Ljava/lang/String;)Landroid/content/Intent;", "GetGetLaunchIntentForPackage_Ljava_lang_String_Handler")]
public override Android.Content.Intent GetLaunchIntentForPackage (string packageName)

Parameters

packageName
The name of the package to inspect.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns a "good" intent to launch a front-door activity in a package. This is used, for example, to implement an "open" button when browsing through packages. The current implementation looks first for a main activity in the category Android.Content.Intent.CategoryInfo, and next for a main activity in the category Android.Content.Intent.CategoryLauncher. Returns null if neither are found.

[Android Documentation]

Requirements

Namespace: Android.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3