Android.Content.PM.PackageManager.GetApplicationInfo Method
Retrieve all of the information we know about a particular package/application.

Syntax

[Android.Runtime.Register("getApplicationInfo", "(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;", "GetGetApplicationInfo_Ljava_lang_String_IHandler")]
public abstract ApplicationInfo GetApplicationInfo (string packageName, [Android.Runtime.GeneratedEnum] PackageInfoFlags flags)

Parameters

packageName
The full name (i.e. com.google.apps.contacts) of an application.
flags
Additional option flags. Use any combination of PackageManager.GET_META_DATA, PackageManager.GET_SHARED_LIBRARY_FILES, 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 all of the information we know about a particular package/application.

Throws NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../../reference/android/content/pm/PackageManager.NameNotFoundException.html if an application with the given package name cannot 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