What does metadata mean in android?

When you start dragging and dropping, you include both the data that you are moving and the metadata that describes this data as part of a system call, the following explanation was found on the Android developers site.

here What does metadata mean in android?

+7
source share
1 answer

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"); 
+8
source

All Articles