PackageManager.GetInstallerPackageName(String) Method

Definition

Retrieve the package name of the application that installed a package.

[Android.Runtime.Register("getInstallerPackageName", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetInstallerPackageName_Ljava_lang_String_Handler")]
public abstract string? GetInstallerPackageName (string packageName);
[<Android.Runtime.Register("getInstallerPackageName", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetInstallerPackageName_Ljava_lang_String_Handler")>]
abstract member GetInstallerPackageName : string -> string

Parameters

packageName
String

The name of the package to query

Returns

Attributes

Remarks

Retrieve the package name of the application that installed a package. This identifies which market the package came from.

This member is deprecated. use #getInstallSourceInfo(String) instead

Java documentation for android.content.pm.PackageManager.getInstallerPackageName(java.lang.String).

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