PackageInstallerUnarchival Enum

Definition

public enum PackageInstallerUnarchival
type PackageInstallerUnarchival = 
Inheritance
PackageInstallerUnarchival

Fields

Name Value Description
Ok 0

The unarchival is possible and will commence. Note that this does not mean that the unarchival has completed. This status should be sent before any longer asynchronous action (e.g. app download) is started.

Android reference for android.content.pm.PackageInstaller.UNARCHIVAL_OK.

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.

ErrorUserActionNeeded 1

The user needs to interact with the installer to enable the installation. An example use case for this could be that the user needs to login to allow the download for a paid app.

Android reference for android.content.pm.PackageInstaller.UNARCHIVAL_ERROR_USER_ACTION_NEEDED.

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.

ErrorInsufficientStorage 2

Not enough storage to unarchive the application. The installer can optionally provide a userActionIntent for a space-clearing dialog. If no action is provided, then a generic intent StorageManager.ACTION_MANAGE_STORAGE is started instead.

Android reference for android.content.pm.PackageInstaller.UNARCHIVAL_ERROR_INSUFFICIENT_STORAGE.

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.

ErrorNoConnectivity 3

The device is not connected to the internet

Android reference for android.content.pm.PackageInstaller.UNARCHIVAL_ERROR_NO_CONNECTIVITY.

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.

ErrorInstallerDisabled 4

The installer responsible for the unarchival is disabled. The system will return this status if appropriate. Installers do not need to verify for this error.

Android reference for android.content.pm.PackageInstaller.UNARCHIVAL_ERROR_INSTALLER_DISABLED.

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.

ErrorInstallerUninstalled 5

The installer responsible for the unarchival has been uninstalled The system will return this status if appropriate. Installers do not need to verify for this error.

Android reference for android.content.pm.PackageInstaller.UNARCHIVAL_ERROR_INSTALLER_UNINSTALLED.

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.

GenericError 100

Generic error: The app cannot be unarchived.

Android reference for android.content.pm.PackageInstaller.UNARCHIVAL_GENERIC_ERROR.

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