【翻译】(49)category元素
【翻译】(49)category元素
?
see
http://developer.android.com/guide/topics/manifest/category-element.html
?
原文见
http://developer.android.com/guide/topics/manifest/category-element.html
?
-------------------------------
?
<category>
?
category元素
?
-------------------------------
?
* syntax:
?
* 语法:
?
-------------------------------
?
<category android:name="string" />
?
-------------------------------
?
* contained in:
?
* 被包含在:
?
<intent-filter>
?
* description:
?
* 描述:
?
Adds a category name to an intent filter. See Intents and Intent Filters for details on intent filters and the role of category specifications within a filter.
?
添加一个分类名称到一个意图过滤器。参见意图与意图过滤器以获得关于意图过滤器和在过滤器中分类指定的作用的细节。
?
* attributes:
?
* 属性:
?
* android:name
?
The name of the category. Standard categories are defined in the Intent class as CATEGORY_name constants. The name assigned here can be derived from those constants by prefixing "android.intent.category." to the name that follows CATEGORY_. For example, the string value for CATEGORY_LAUNCHER is "android.intent.category.LAUNCHER".
?
分类的名称。标准分类被定义在Intent类中作为CATEGORY_<名称>常量。这里赋予的名称可以从那些前缀为"android.intent.category."的常量中派生成CATEGORY_前缀的名称。例如,CATEGORY_LAUNCHER的字符串值是"android.intent.category.LAUNCHER"。
?
Custom categories should use the package name as a prefix, to ensure that they are unique.
?
自定义分类应该使用包名作为前缀,以确保它们是唯一的。
?
* introduced in:
?
* 引入:
?
API Level 1
?
API级别1
?
* see also:
?
* 另见:
?
<action>?
<data>
?
Except as noted, this content is licensed under Apache 2.0. For details and restrictions, see the Content License.
?
除特别说明外,本文在Apache 2.0下许可。细节和限制请参考内容许可证。
?
Android 4.0 r1 - 10 Feb 2012 0:44
?
-------------------------------
?
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
?
(此页部分内容基于Android开源项目,以及使用根据创作公共2.5来源许可证描述的条款进行修改)
?
(本人翻译质量欠佳,请以官方最新内容为准,或者参考其它翻译版本:
* ソフトウェア技術ドキュメントを勝手に翻訳
http://www.techdoctranslator.com/android
* Ley's Blog
http://leybreeze.com/blog/
* 农民伯伯
http://www.cnblogs.com/over140/
* Android中文翻译组
http://androidbox.sinaapp.com/
)
?