< category >
English Original: http://developer.android.com/guide/topics/manifest/category-element.html
Acquisition (update) Date: 2014-6-27
Moved from the original blog: http://blog.sina.com.cn/s/blog_48d491300100zmgy.html
-
-
Grammar:
-
-
<android:name/>
-
-
Included in:
-
-
<intent-filter>
-
-
Description
-
-
Add a category name to the Intent filter. For more information on the role of Intent filters and filters in the categories, see Intent and Intent filters.
-
-
Property:
-
-
-
android:name
-
The name of the category.
Intent CATEGORY_name a category defined by a constant definition in a class. The CATEGORY_ name android.intent.category. name used for this property can be obtained from these constants by prefixing the prefix with "" in the following. For example CATEGORY_LAUNCHER , the constant corresponding to the string is " android.intent.category.LAUNCHER ".
Note: in order to be able to receive an implicitly declared Intent, the Intent filter must contain a CATEGORY_DEFAULT type. startActivity()and startActivityForResult() the method considers that all Intent have declared the CATEGORY_DEFAULT type. If the default type is not declared in the Intent filter, there will be no implicitly declared Intent distributed to your Activity.
The custom category should be prefixed with the package name to ensure its uniqueness.
-
-
Introduced from:
-
-
API Level 1
-
-
See:
-
-
<action>
<data>
Android Development-api Guide-<category>