Android.Test.Mock.MockPackageManager.GetPackageInfo Method
Retrieve overall information about an application package that is installed on the system.

Syntax

[Android.Runtime.Register("getPackageInfo", "(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;", "GetGetPackageInfo_Ljava_lang_String_IHandler")]
public override Android.Content.PM.PackageInfo GetPackageInfo (string packageName, [Android.Runtime.GeneratedEnum] Android.Content.PM.PackageInfoFlags flags)

Parameters

packageName
The full name (i.e. com.google.apps.contacts) of the desired package.
flags
Additional option flags. Use any combination of Android.Content.PM.PackageManager.GET_ACTIVITIES, Android.Content.PM.PackageManager.GET_GIDS, Android.Content.PM.PackageManager.GET_CONFIGURATIONS, Android.Content.PM.PackageManager.GET_INSTRUMENTATION, Android.Content.PM.PackageManager.GET_PERMISSIONS, Android.Content.PM.PackageManager.GET_PROVIDERS, Android.Content.PM.PackageManager.GET_RECEIVERS, Android.Content.PM.PackageManager.GET_SERVICES, Android.Content.PM.PackageManager.GET_SIGNATURES, Android.Content.PM.PackageManager.GET_UNINSTALLED_PACKAGES to modify the data returned.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
!:NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../../reference/android/content/pm/PackageManager.NameNotFoundException.html

Remarks

Retrieve overall information about an application package that is installed on the system.

Throws NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../../reference/android/content/pm/PackageManager.NameNotFoundException.html if a package with the given name can not be found on the system.

[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 1