From what I collect, metadata is essentially a way to access properties. The following link gives an example with a brief explanation:
This field can be used to store boolean, float, int or String and will later be used by the Bundle method for your data type (for example, getInt ()). Here is an example of how to determine the value in your AndroidManifest.xml:
<xml> ... <meta-data android:name="my_api_key" android:value="mykey123" /> ... </xml>
The returned ApplicationInfo contains the metaData field, which is actually a Bundle containing all the metadata. Line 4 selects a line that matches the "android: name" parameter in XML.
ApplicationInfo ai = getPackageManager().getApplicationInfo(activity.getPackageName(), PackageManager.GET_META_DATA); Bundle bundle = ai.metaData; String myApiKey = bundle.getString("my_api_key");
Woot4moo
source share