Added in revision 25
public interface

PackageInstallerListener

com.datalogic.device.app.PackageInstallerListener

Class Overview

This interface is used by the application to listen to install/uninstall/upgrade result event.

Summary

Public Methods
abstract void onResult(List<PackageInstallerResult> results)
onResult will be called to signal the result of the commands install/uninstall/upgrade executed in a session or as standolone command.

Public Methods

public abstract void onResult (List<PackageInstallerResult> results)

Added in revision 25

onResult will be called to signal the result of the commands install/uninstall/upgrade executed in a session or as standolone command.
When the commands are submitted in a session the results in the List have the same order of the commands in the session.
In any case the fields event and data of PackageInstallerResult allow the identification of the command.

Parameters
results PackageInstallerResult List result of the commands
e.g:
results[0] = {event = INSTALL_TERMINATED, data = "/dir1/dir11/dir116/pkg1.apk", result = InstallerException.SUCCESS}
results[1] = {event = UNINSTALL_TERMINATED, data = "com.android.helloandroid", result = InstallerException.SUCCESS}