Syntax (synatx ):
<Actionandroid: Name ="String"/>
Contained in (contained in ):
<Intent-filter>
Description ):
Add an operation to the intent filter. An <intent-filter> element must contain one or more <action> elements. If one element is not included, no intent object will pass the filter.
Attributes (attributes ):
Android: Name
It defines the operation name. Use Action _ in intent class _StringConstants define some standard operations. To associate these operations with this attribute, replace the prefix Action _ string with "android. Intent. Action .". For example, for the action_main operation, Android. Intent. Action. Main is used as the property value. For the action_web_search operation, Android. Intent. Action. web_seatch is used as the property value.
For custom operations, it is best to use the package name as the prefix to ensure uniqueness. For example, the transmogrify operation can be defined as follows:
<Actionandroid: Name = "com. example. Project. transmogrify"/>
Introduction version (introduced in ):
API Level 1