Example usage for android.content.pm PackageManager GET_META_DATA

List of usage examples for android.content.pm PackageManager GET_META_DATA

Introduction

In this page you can find the example usage for android.content.pm PackageManager GET_META_DATA.

Prototype

int GET_META_DATA

To view the source code for android.content.pm PackageManager GET_META_DATA.

Click Source Link

Document

ComponentInfo flag: return the ComponentInfo#metaData data android.os.Bundle s that are associated with a component.

Usage

From source file:android.content.pm.PackageParser.java

public static final InstrumentationInfo generateInstrumentationInfo(Instrumentation i, int flags) {
    if (i == null)
        return null;
    if ((flags & PackageManager.GET_META_DATA) == 0) {
        return i.info;
    }//from   w  w w . j a v  a 2 s  . c o m
    InstrumentationInfo ii = new InstrumentationInfo(i.info);
    ii.metaData = i.metaData;
    return ii;
}