- syntax:
android:name="string" /> - contained in:
- description:
- Adds an action to an intent filter.
An
element must contain one or more
elements. If there are no
elements in an intent filter, the filter doesn't accept anyIntent
objects. For details about intent filters and the role of action specifications within a filter, see Intents and Intent Filters. - attributes:
android:name
- The name of the action. Some standard actions are defined in the
Intent
class asACTION_string
constants. To assign one of these actions to this attribute, prependandroid.intent.action.
to thestring
that followsACTION_
. For example, forACTION_MAIN
, useandroid.intent.action.MAIN
, and forACTION_WEB_SEARCH
, useandroid.intent.action.WEB_SEARCH
.For actions you define, it's best to use your app's package name as a prefix to help ensure uniqueness. For example, a
TRANSMOGRIFY
action might be specified as follows:android:name="com.example.project.TRANSMOGRIFY" />
- introduced in:
- API Level 1
- see also: