Example usage for android.content Intent EXTRA_INSTALL_RESULT

List of usage examples for android.content Intent EXTRA_INSTALL_RESULT

Introduction

In this page you can find the example usage for android.content Intent EXTRA_INSTALL_RESULT.

Prototype

String EXTRA_INSTALL_RESULT

To view the source code for android.content Intent EXTRA_INSTALL_RESULT.

Click Source Link

Document

Package manager install result code.

Usage

From source file:com.android.packageinstaller.PackageInstallerActivity.java

void setPmResult(int pmResult) {
    Intent result = new Intent();
    result.putExtra(Intent.EXTRA_INSTALL_RESULT, pmResult);
    setResult(pmResult == PackageManager.INSTALL_SUCCEEDED ? RESULT_OK : RESULT_FIRST_USER, result);
}