Condividi tramite


Intent.ActionUninstallPackage Field

Definition

Activity Action: Launch application uninstaller.

[Android.Runtime.Register("ACTION_UNINSTALL_PACKAGE")]
public const string ActionUninstallPackage;
[<Android.Runtime.Register("ACTION_UNINSTALL_PACKAGE")>]
val mutable ActionUninstallPackage : string

Field Value

Implements

Attributes

Remarks

Activity Action: Launch application uninstaller.

Input: The data must be a package: URI whose scheme specific part is the package name of the current installed package to be uninstalled. You can optionally supply #EXTRA_RETURN_RESULT.

Output: If #EXTRA_RETURN_RESULT, returns whether the uninstall succeeded.

Requires android.Manifest.permission#REQUEST_DELETE_PACKAGES since Build.VERSION_CODES#P.

This member is deprecated. Use android.content.pm.PackageInstaller#uninstall(String, IntentSender) instead

Java documentation for android.content.Intent.ACTION_UNINSTALL_PACKAGE.

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