IPackageInstallObserver2.javaAPI DocAndroid 5.1 API5457Sat Mar 14 05:48:00 GMT


public interface IPackageInstallObserver2 implements android.os.IInterface
API for installation callbacks from the Package Manager. In certain result cases additional information will be provided.

Fields Summary
Constructors Summary
Methods Summary
public voidonPackageInstalled(java.lang.String basePackageName, int returnCode, java.lang.String msg, android.os.Bundle extras)
The install operation has completed. {@code returnCode} holds a numeric code indicating success or failure. In certain cases the {@code extras} Bundle will contain additional details:

INSTALL_FAILED_DUPLICATE_PERMISSION Two strings are provided in the extras bundle: EXTRA_EXISTING_PERMISSION is the name of the permission that the app is attempting to define, and EXTRA_EXISTING_PACKAGE is the package name of the app which has already defined the permission.

public voidonUserActionRequired(android.content.Intent intent)