public class

PackageInstallerException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.datalogic.device.app.PackageInstallerException

Class Overview

This exception is used for installer related errors.

Summary

Constants
int ALREADY_INSTALLED The application is already installed.
int APK_NOT_CURRENT_APP Apk is not the appropriate to upgrade the current application.
int APK_NOT_FOUND App not found.
int EMPTY_LIST The passed list is empty.
int FAILURE The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE.
int FAILURE_ABORTED The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_ABORTED.
int FAILURE_BLOCKED The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_BLOCKED.
int FAILURE_CONFLICT The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_CONFLICT.
int FAILURE_INCOMPATIBLE The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_INCOMPATIBLE.
int FAILURE_INVALID The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_INVALID.
int FAILURE_STORAGE The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_STORAGE.
int GENERIC_ERROR Generic error, mostly due to a wrong parameter passed to a SDK method.
int INSTALLER_SERVICE_ERROR Installer Service error.
int INVALID_PATH The apk file doesn't exist.
int IO_ERROR IO exception.
int NOT_INSTALLED The application is not installed.
int NULL_POINTER_ERROR Null pointer error.
int PENDING_USER_ACTION The commit has been refused with android.content.pm.PackageInstaller.STATUS_PENDING_USER_ACTION.
int REMOTE_CALL_ERROR It's not possible to call the remote service.
int SECURITY_ERROR Security exception.
int SESSION_PARAM_ERROR IllegalArgumentException exception.
int SESSION_WRONG_STATE Wrong sequence of call on a PackageInstallerSession.
int SUCCESS Success constant.
int UNBOUND_SERVICE Remote service not bound.
int UNKNOWN_ERROR The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_INCOMPATIBLE.
int UPGRADE_VERSION_ERROR The installed version is higher than that of the .apk intended for the upgrade.
Fields
public int error_number The error number returned by the Installer's system services.
Public Constructors
PackageInstallerException()
Constructs an PackageInstallerException object.
PackageInstallerException(String s)
Constructs an GENERIC_ERROR PackageInstallerException object.
PackageInstallerException(String s, int number)
Constructs an PackageInstallerException object that takes a int parameter containing the reason the exception was thrown.
PackageInstallerException(int number)
Constructs an PackageInstallerException object that takes a int parameter containing the reason the exception was thrown.
Public Methods
static String stringifyCode(int number)
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Constants

public static final int ALREADY_INSTALLED

Added in revision 25

The application is already installed.

Constant Value: -3866619 (0xffc50005)

public static final int APK_NOT_CURRENT_APP

Added in revision 25

Apk is not the appropriate to upgrade the current application.

Constant Value: -3866599 (0xffc50019)

public static final int APK_NOT_FOUND

Added in revision 25

App not found.

Constant Value: -3866602 (0xffc50016)

public static final int EMPTY_LIST

Added in revision 25

The passed list is empty.

Constant Value: -3866613 (0xffc5000b)

public static final int FAILURE

Added in revision 25

The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE.

Constant Value: -3866610 (0xffc5000e)

public static final int FAILURE_ABORTED

Added in revision 25

The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_ABORTED.

Constant Value: -3866604 (0xffc50014)

public static final int FAILURE_BLOCKED

Added in revision 25

The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_BLOCKED.

Constant Value: -3866609 (0xffc5000f)

public static final int FAILURE_CONFLICT

Added in revision 25

The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_CONFLICT.

Constant Value: -3866608 (0xffc50010)

public static final int FAILURE_INCOMPATIBLE

Added in revision 25

The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_INCOMPATIBLE.

Constant Value: -3866607 (0xffc50011)

public static final int FAILURE_INVALID

Added in revision 25

The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_INVALID.

Constant Value: -3866606 (0xffc50012)

public static final int FAILURE_STORAGE

Added in revision 25

The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_STORAGE.

Constant Value: -3866605 (0xffc50013)

public static final int GENERIC_ERROR

Added in revision 25

Generic error, mostly due to a wrong parameter passed to a SDK method.

Constant Value: -3866621 (0xffc50003)

public static final int INSTALLER_SERVICE_ERROR

Added in revision 25

Installer Service error.

Constant Value: -3866623 (0xffc50001)

public static final int INVALID_PATH

Added in revision 25

The apk file doesn't exist.

Constant Value: -3866618 (0xffc50006)

public static final int IO_ERROR

Added in revision 25

IO exception.

Constant Value: -3866617 (0xffc50007)

public static final int NOT_INSTALLED

Added in revision 25

The application is not installed.

Constant Value: -3866614 (0xffc5000a)

public static final int NULL_POINTER_ERROR

Added in revision 25

Null pointer error.

Constant Value: -3866622 (0xffc50002)

public static final int PENDING_USER_ACTION

Added in revision 25

The commit has been refused with android.content.pm.PackageInstaller.STATUS_PENDING_USER_ACTION.

Constant Value: -3866611 (0xffc5000d)

public static final int REMOTE_CALL_ERROR

Added in revision 25

It's not possible to call the remote service.

Constant Value: -3866620 (0xffc50004)

public static final int SECURITY_ERROR

Added in revision 25

Security exception.

Constant Value: -3866616 (0xffc50008)

public static final int SESSION_PARAM_ERROR

Added in revision 25

IllegalArgumentException exception.

Constant Value: -3866615 (0xffc50009)

public static final int SESSION_WRONG_STATE

Added in revision 25

Wrong sequence of call on a PackageInstallerSession.

Constant Value: -3866598 (0xffc5001a)

public static final int SUCCESS

Added in revision 25

Success constant.

Constant Value: 0 (0x00000000)

public static final int UNBOUND_SERVICE

Added in revision 25

Remote service not bound.

Constant Value: -3866601 (0xffc50017)

public static final int UNKNOWN_ERROR

Added in revision 25

The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_INCOMPATIBLE.

Constant Value: -3866603 (0xffc50015)

public static final int UPGRADE_VERSION_ERROR

Added in revision 25

The installed version is higher than that of the .apk intended for the upgrade.

Constant Value: -3866612 (0xffc5000c)

Fields

public int error_number

Added in revision 25

The error number returned by the Installer's system services.

Public Constructors

public PackageInstallerException ()

Added in revision 25

Constructs an PackageInstallerException object.

public PackageInstallerException (String s)

Added in revision 25

Constructs an GENERIC_ERROR PackageInstallerException object. The String parameter is concatenated to the exception message.

Parameters
s String String concatenated to the error message.

public PackageInstallerException (String s, int number)

Added in revision 25

Constructs an PackageInstallerException object that takes a int parameter containing the reason the exception was thrown. The String prameter is concatenated to the exception message.

Parameters
s String String concatenated to the error message.
number int indicating the error code number.

public PackageInstallerException (int number)

Added in revision 25

Constructs an PackageInstallerException object that takes a int parameter containing the reason the exception was thrown.

Parameters
number int indicating the error code number.

Public Methods

public static String stringifyCode (int number)

Added in revision 25