<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.
인텐트 필터에 카테고리 이름을 추가한다. 인텐트 필터에 대한 상세내용을 위해서 5장. “인텐트와 인텐트 필터” 그리고 필터 내에서의 카테고리 명세의 역할을 보라.
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".

Custom categories should use the package name as a prefix, to ensure that they are unique.

카테고리의 이름. 표준 카테고리들은 CATEGORY_name 상수처럼 인텐트 클래스 안에서 정의된다. 여기서 할당된 이름은 CATEGORY_ 뒤에 나오는 이름에 “android.intent.category.” 접두어를 붙임으로써 그것들의 상수로부터 파생될 수 있다. 예를 들어 CATEGORY_LAUNCHER에 대한 문자열 값은 “android.intent.category.LAUNCHER”이다.

커스텀 카테고리는 그것의 유일함을 보장하기 위해 접두어로 패키지 이름을 사용해야 한다.

introduced in:
API Level 1
see also:
<action>
<data>
↑ Go to top