Com.Datalogic.Device.App Namespace |
| Class | Description | |
|---|---|---|
| AppManager | AppManager gives developers the ability to manage installed applications.
|
|
| AppManagerException | This exception is used for AppManager related errors. |
|
| PackageInstaller | PackageInstaller gives developers the ability to install, uninstall and
upgrade applications in unattended/silent mode.
The install/uninstall/upgrade/selfUpgrade methods are asynchronous. An object that implements PackageInstallerListener
must be passed to PackageInstaller to be able to handle the result. An install/uninstall/upgrade method can be executed alone calling the corresponding method of the PackageInstaller or together with other methods grouped in a PackageInstallerSession. In the former case there will be a result callback for each method, in the latter case there will be only one callback listing the results of each method. The methods grouped in a PackageInstallerSession are executed in best effort. To install an application do the following steps:
To uninstall an application do the following steps:
To upgrade an application do the following steps:
To execute more install/uninstall/upgrade methods and be notified of the results when all the methods have completed, do the following steps:
To upgrade the current application do the following steps:
|
|
| PackageInstallerEvent | ||
| PackageInstallerEventArgs | ||
| PackageInstallerException | This exception is used for installer related errors. |
|
| PackageInstallerResult | PackageInstallerResult is the base element of the List passed by
PackageInstallerListener.onResult(java.util.List<com.datalogic.device.app.PackageInstallerResult>) to retrieve the result of
operations of install/uninstall/upgrade. |
|
| PackageInstallerSession | PackageInstallerSession gives developers the ability to group the execution of a sequence of install, uninstall and
upgrade commands.
Once the session is created, the commands install, uninstall, upgrade must be called inside a transaction.
A transaction is opened calling openSession() and closed and commited calling closeSession().
To install two applications using a session do the following steps:
|
| Interface | Description | |
|---|---|---|
| IPackageInstallerListener |