page.title=<category> parent.title=The AndroidManifest.xml File parent.link=manifest-intro.html @jd:body
syntax:
<category android:name="string" />
contained in:
<intent-filter>
description:
Adds a category name to an intent filter. See Intents and Intent Filters for details on intent filters and the role of category specifications within a filter.
attributes:
{@code android:name}
The name of the category. Standard categories are defined in the {@link android.content.Intent} class as {@code CATEGORY_name} constants. The name assigned here can be derived from those constants by prefixing "{@code android.intent.category.}" to the {@code name} that follows {@code CATEGORY_}. For example, the string value for {@code CATEGORY_LAUNCHER} is "{@code android.intent.category.LAUNCHER}".

Note: In order to receive implicit intents, you must include the {@link android.content.Intent#CATEGORY_DEFAULT} category in the intent filter. The methods {@link android.app.Activity#startActivity startActivity()} and {@link android.app.Activity#startActivityForResult startActivityForResult()} treat all intents as if they declared the {@link android.content.Intent#CATEGORY_DEFAULT} category. If you do not declare it in your intent filter, no implicit intents will resolve to your activity.

Custom categories should use the package name as a prefix, to ensure that they are unique.

introduced in:
API Level 1
see also:
<action>
<data>