java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | java.lang.RuntimeException | |||
↳ | com.datalogic.device.app.PackageInstallerException |
This exception is used for installer related errors.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
error_number | The error number returned by the Installer's system services. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an PackageInstallerException object.
| |||||||||||
Constructs an GENERIC_ERROR PackageInstallerException object.
| |||||||||||
Constructs an PackageInstallerException object that takes a
int parameter containing the reason the exception was
thrown. | |||||||||||
Constructs an PackageInstallerException object that takes a
int parameter containing the reason the exception was
thrown. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
|
The application is already installed.
Apk is not the appropriate to upgrade the current application.
App not found.
The passed list is empty.
The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE.
The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_ABORTED.
The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_BLOCKED.
The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_CONFLICT.
The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_INCOMPATIBLE.
The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_INVALID.
The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_STORAGE.
Generic error, mostly due to a wrong parameter passed to a SDK method.
Installer Service error.
The apk file doesn't exist.
IO exception.
The application is not installed.
Null pointer error.
The commit has been refused with android.content.pm.PackageInstaller.STATUS_PENDING_USER_ACTION.
It's not possible to call the remote service.
Security exception.
IllegalArgumentException exception.
Wrong sequence of call on a PackageInstallerSession.
Success constant.
Remote service not bound.
The commit has been refused with android.content.pm.PackageInstaller.STATUS_FAILURE_INCOMPATIBLE.
The installed version is higher than that of the .apk intended for the upgrade.
The error number returned by the Installer's system services.
Constructs an PackageInstallerException object.
Constructs an GENERIC_ERROR PackageInstallerException object.
The String
parameter is concatenated to the exception message.
s | String String concatenated to the error message.
|
---|
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.
s | String String concatenated to the error message. |
---|---|
number | int indicating the error code number.
|
Constructs an PackageInstallerException object that takes a
int
parameter containing the reason the exception was
thrown.
number | int indicating the error code number.
|
---|