page.title=<meta-data> parent.title=The AndroidManifest.xml File parent.link=manifest-intro.html @jd:body
syntax:
<meta-data android:name="string"
           android:resource="resource specification"
           android:value="string" />
contained in:
<activity>
<activity-alias>
<application>
<provider>
<receiver>

<service>
description:
A name-value pair for an item of additional, arbitrary data that can be supplied to the parent component. A component element can contain any number of {@code } subelements. The values from all of them are collected in a single {@link android.os.Bundle} object and made available to the component as the {@link android.content.pm.PackageItemInfo#metaData PackageItemInfo.metaData} field.

Ordinary values are specified through the value attribute. However, to assign a resource ID as the value, use the resource attribute instead. For example, the following code assigns whatever value is stored in the {@code @string/kangaroo} resource to the "{@code zoo}" name:

<meta-data android:name="zoo" android:value="@string/kangaroo" />

On the other hand, using the {@code resource} attribute would assign "{@code zoo}" the numeric ID of the resource, not the value stored in the resource:

<meta-data android:name="zoo" android:resource="@string/kangaroo" />

It is highly recommended that you avoid supplying related data as multiple separate {@code } entries. Instead, if you have complex data to associate with a component, store it as a resource and use the {@code resource} attribute to inform the component of its ID.

attributes:
{@code android:name}
A unique name for the item. To ensure that the name is unique, use a Java-style naming convention — for example, "{@code com.example.project.activity.fred}".
{@code android:resource}
A reference to a resource. The ID of the resource is the value assigned to the item. The ID can be retrieved from the meta-data Bundle by the {@link android.os.BaseBundle#getInt Bundle.getInt()} method.
{@code android:value}
The value assigned to the item. The data types that can be assigned as values and the Bundle methods that components use to retrieve those values are listed in the following table:
Type Bundle method
String value, using double backslashes ({@code \\}) to escape characters — such as "{@code \\n}" and "{@code \\uxxxxx}" for a Unicode character. {@link android.os.BaseBundle#getString(String) getString()}
Integer value, such as "{@code 100}" {@link android.os.BaseBundle#getInt(String) getInt()}
Boolean value, either "{@code true}" or "{@code false}" {@link android.os.BaseBundle#getBoolean(String) getBoolean()}
Color value, in the form "{@code #rgb}", "{@code #argb}", "{@code #rrggbb}", or "{@code #aarrggbb}" {@link android.os.BaseBundle#getInt(String) getInt()}
Float value, such as "{@code 1.23}" {@link android.os.Bundle#getFloat(String) getFloat()}
introduced in:
API Level 1