<action>
English Original: http://developer.android.com/guide/topics/manifest/action-element.html
Acquisition (update) Date: 2014-6-27
Moved from the original blog: http://blog.sina.com.cn/s/blog_48d491300100zmfi.html
-
-
Grammar:
-
-
<action android:name= "string"/>
-
-
Included in
-
-
<intent-filter>
-
-
Description
-
-
add an Action to the Intent filter. The
<intent-filter> element must contain one or more <action> elements. If none of the elements are included <action> , the filter does not receive any Intent objects. For more information on the use of various actions in Intent filters and filters, please refer to Intent and Intent filters.
-
-
Property:
-
-
-
android:name
-
The name of the Action. The
Intent standard Action is already defined in the class as a ACTION_string constant. To assign these actions to this property, android.intent.action. prefix it with "" and add it to the ACTION_ string front. For example, for the purposes of, use "" ACTION_MAIN android.intent.action.MAIN , and "" for ACTION_WEB_SEARCH android.intent.action.WEB_SEARCH .
For a custom Action, it is best to prefix the package with a masterpiece to ensure uniqueness. For example TRANSMOGRIFY , an action can be defined as follows:
<android:name= "Com.example.project.TRANSMOGRIFY"/>
-
-
Introduced from:
-
-
API Level 1
-
-
See
-
-
<intent-filter>
Android Development-api Guide-<action>