Androidmanifest. xml file (Action)

Source: Internet
Author: User

Syntax (synatx ):

<Actionandroid: Name ="String"/>

Contained in (contained in ):

<Intent-filter>

Description ):

Add an operation to the intent filter. An <intent-filter> element must contain one or more <action> elements. If one element is not included, no intent object will pass the filter.

Attributes (attributes ):

Android: Name

It defines the operation name. Use Action _ in intent class _StringConstants define some standard operations. To associate these operations with this attribute, replace the prefix Action _ string with "android. Intent. Action .". For example, for the action_main operation, Android. Intent. Action. Main is used as the property value. For the action_web_search operation, Android. Intent. Action. web_seatch is used as the property value.

For custom operations, it is best to use the package name as the prefix to ensure uniqueness. For example, the transmogrify operation can be defined as follows:

<Actionandroid: Name = "com. example. Project. transmogrify"/>

Introduction version (introduced in ):

API Level 1

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.