Example usage for android.provider DocumentsContract EXTRA_PACKAGE_NAME

List of usage examples for android.provider DocumentsContract EXTRA_PACKAGE_NAME

Introduction

In this page you can find the example usage for android.provider DocumentsContract EXTRA_PACKAGE_NAME.

Prototype

String EXTRA_PACKAGE_NAME

To view the source code for android.provider DocumentsContract EXTRA_PACKAGE_NAME.

Click Source Link

Usage

From source file:com.android.documentsui.DocumentsActivity.java

private String getCallingPackageMaybeExtra() {
    final String extra = getIntent().getStringExtra(DocumentsContract.EXTRA_PACKAGE_NAME);
    return (extra != null) ? extra : getCallingPackage();
}

From source file:cn.edu.wyu.documentviewer.DocumentsActivity.java

private String getCallingPackageMaybeExtra() {
    final String extra = virtualIntent.getStringExtra(DocumentsContract.EXTRA_PACKAGE_NAME);
    return (extra != null) ? extra : getCallingPackage();
}