Android Official documents: (ii) app list--2.2 <action> tags

Source: Internet
Author: User

Syntax

<actionandroid:name="string"  />
Contained in:
<intent-filter>

Description
Adds an action to an intent filter. An <intent-filter> element must contain one or more <action> elements. If it doesn ' t contain any, nointent objects'll get through the filter. See Intents and Intent Filters for details on Intent Filters and the role of actionspecifications within a filter.
Attributes
android:name
the name of the action. Some standard actions is defined in the Intent class as action_ string constants. To assign one of these actions to this attribute, prepend " android.intent.action. " to the Strin G that follows Action_ . For example, for action_main , use ' Android.intent.action.MAIN ' and for Action_web_sea RCH , use " Android.intent.action.WEB_SEARCH ".

For actions define, it's best to use the package name as a prefix toensure uniqueness. For example, a transmogrify action might is specified as follows:

<action    android:name  =   "Com.example.project.TRANSMOGRIFY"    />  
Introduced in:
API Level 1
See also:
<intent-filter>

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.