<action>
语法:
<action android:name="string"/>
父标签:
<intent-filter>
描述:
每个<intent-filter>标签都必须有一个或者更多的<action>标签, 如果没有的话, 就不会有符合该intent-filter的intent了.
属性:
android:name.唯一的属性, 表示action的名字, 在intent类中有些默认的action名字, 格式为”ACTION_string”. 而在action:name中则使用”android.intent.action.string”来对应intent中的action. 比如: intent参数中的ACTION_MAIN对应android:name的android.intent.actioin.MAIN,用ACTION_WEB_SEARCH对应android.intent.action.WEB_SERACH.对于自定义的action, 最好使用包名做前缀, 以防止重名, 比如一个叫TRANSMOGRIFY的action可以定义成这样:
<action android:name="com.example.project.TRANSMOGRIFY"/>
<activity-alias>
语法:
<activity-alias android:enabled=["true" | "false"]
android:exported=["true" | "false"]
android:icon="drawable resource"
android:label="string resource"
android: