Android Development Document Translation

Source: Internet
Author: User

============ Problem Description ============



Trouble who can translate these paragraphs accurately.
The "the" the "system identifies the components" can respond to an intent are by comparing the intent received to the inte NT filters provided in the manifest file of other apps on the device.

When you declare a activity in your app's manifest, you can optionally include intent filters that declare the Capabiliti Es of the activity so it can respond to intents from other apps. You can declare an intent filter for your component by adding an <intent-filter> element as a child of the component ' s declaration element.

For example, if you've built an e-mail app with the activity for composing a new e-mail, you can declare a intent filter to Respond to "send" intents (in order to send a new e-mail) like this:

============ Solution 1============


The system recognizes the components that can respond to intent by comparing the received intent with the intent filter provided in the manifest file of other apps on the device.
When you declare an activity in your app's manifest file, you can selectively include the intent filter, which declares the activity's compatibility, so it responds to intent received from another app. You can declare a intent filter for your component by adding <intent-filter> at the Sub-tab of the declaration component label.
For example, if you make an email app that has an activity that writes mail, you can declare a intent filter in response to "send" intent (in order to send a new message) like this:

============ Solution 2============


The translation is good, but the feeling is a little different from the way Chinese is expressed.

Android Development Document Translation

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.