Android.Content.PM.PackageManager.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 abstract PackageInfo GetPackageInfo (string packageName, [Android.Runtime.GeneratedEnum] 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 PackageManager.GET_ACTIVITIES, PackageManager.GET_GIDS, PackageManager.GET_CONFIGURATIONS, PackageManager.GET_INSTRUMENTATION, PackageManager.GET_PERMISSIONS, PackageManager.GET_PROVIDERS, PackageManager.GET_RECEIVERS, PackageManager.GET_SERVICES, PackageManager.GET_SIGNATURES, 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.Content.PM
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1