PackageManager.GetPackageArchiveInfo(String, PackageInfoFlags) Method

Definition

Retrieve overall information about an application package defined in a package archive file

[Android.Runtime.Register("getPackageArchiveInfo", "(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;", "GetGetPackageArchiveInfo_Ljava_lang_String_IHandler")]
public virtual Android.Content.PM.PackageInfo? GetPackageArchiveInfo (string archiveFilePath, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getPackageArchiveInfo", "(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;", "GetGetPackageArchiveInfo_Ljava_lang_String_IHandler")>]
abstract member GetPackageArchiveInfo : string * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.PackageInfo
override this.GetPackageArchiveInfo : string * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.PackageInfo

Parameters

archiveFilePath
String

The path to the archive file

flags
PackageInfoFlags

Additional option flags to modify the data returned.

Returns

PackageInfo

A PackageInfo object containing information about the package archive. If the package could not be parsed, returns null.

Attributes

Remarks

Java documentation for android.content.pm.PackageManager.getPackageArchiveInfo(java.lang.String, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to