Android Development-api Guide-<category>

Source: Internet
Author: User

< 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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.