ANDROID开发文档翻译
2014-10-22 00:01
183 查看
============问题描述============
麻烦谁能准确地翻译这几段话。
The way the system identifies the components that can respond to an intent is by comparing the intent received to the intent filters provided in the manifest file of other apps on the device.
When you declare an activity in your app's manifest, you can optionally include intent filters that declare the capabilities 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 email app with an activity for composing a new email, you can declare an intent filter to respond to "send" intents (in order to send a new email) like this:
============解决方案1============
系统识别能响应intent的components的方法是,将接收到的intent与设备上其它app的manifest文件中提供的intent过滤器作比较。
当你在你的app的manifest文件中声明一个activity时,你可以选择性地包含intent过滤器,这些过滤器声明了这个activity的兼容性,所以它可以响应从别的app接收到的intent。你可以为你的component声明一个intent过滤器,方法是在声明component标签的子标签处添加<intent-filter>。
举个例子,如果你作了一个email的app,这个app有一个写邮件的activity,你可以声明一个intent过滤器来响应“发送”intent(为了发送新邮件)像这样:
============解决方案2============
翻译得不错,不过感觉还是有点和汉语的表达方式不一样。
麻烦谁能准确地翻译这几段话。
The way the system identifies the components that can respond to an intent is by comparing the intent received to the intent filters provided in the manifest file of other apps on the device.
When you declare an activity in your app's manifest, you can optionally include intent filters that declare the capabilities 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 email app with an activity for composing a new email, you can declare an intent filter to respond to "send" intents (in order to send a new email) like this:
============解决方案1============
系统识别能响应intent的components的方法是,将接收到的intent与设备上其它app的manifest文件中提供的intent过滤器作比较。
当你在你的app的manifest文件中声明一个activity时,你可以选择性地包含intent过滤器,这些过滤器声明了这个activity的兼容性,所以它可以响应从别的app接收到的intent。你可以为你的component声明一个intent过滤器,方法是在声明component标签的子标签处添加<intent-filter>。
举个例子,如果你作了一个email的app,这个app有一个写邮件的activity,你可以声明一个intent过滤器来响应“发送”intent(为了发送新邮件)像这样:
============解决方案2============
翻译得不错,不过感觉还是有点和汉语的表达方式不一样。
相关文章推荐
- Android帮助文档翻译——开发指南(十五)获取用户位置
- android task与back stack 开发文档翻译 - 3
- Android Interface Definition Language (AIDL) android接口定义语言 开发文档翻译 - 1
- android 管理Bitmap内存 - 开发文档翻译
- android 在UI线程之外处理Bitmap - 开发文档翻译
- Android帮助文档翻译——开发指南(十五)获取用户位置
- android - 为安全而设计 - 1 - 开发文档翻译
- 【Android开发】Android Host详解(翻译自官方文档)
- android - 为安全而设计 - 3 - 开发文档翻译
- android 缓存Bitmap - 开发文档翻译
- android task与back stack 开发文档翻译 - 1
- Android帮助文档翻译——开发指南(二)Activity
- android Fragment开发文档翻译 - 2
- android 进程与线程 - 开发文档翻译 - 线程
- Android Interface Definition Language (AIDL) android接口定义语言 开发文档翻译 - 2
- android task与back stack 开发文档翻译 - 2
- android activity开发文档翻译 - 1 - 基础篇
- android Fragment开发文档翻译 - 1
- android 在UI线程之外处理Bitmap - 开发文档翻译
- android 有效加载大型Bitmap - 开发文档翻译