Android.Test.Mock.MockPackageManager.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 override Android.Content.PM.ApplicationInfo GetApplicationInfo (string packageName, [Android.Runtime.GeneratedEnum] Android.Content.PM.PackageInfoFlags flags)

Parameters

packageName
The full name (i.e. com.google.apps.contacts) of an application.
flags
Additional option flags. Use any combination of Android.Content.PM.PackageManager.GET_META_DATA, Android.Content.PM.PackageManager.GET_SHARED_LIBRARY_FILES, 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 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.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1