- 문법
<action android:name="string" />
- 포함된 요소
<intent-filter>
- 설명
- 인텐트 필터에 작업을 추가합니다.
<intent-filter>
요소에 <action>
요소가 하나 이상 포함되어야 합니다. 인텐트 필터에 <action>
요소가 없으면 필터가 Intent
객체를 허용하지 않습니다. 인텐트 필터와 필터 내의 작업 사양 역할을 자세히 알아보려면 인텐트 및 인텐트 필터를 참고하세요.
- 속성
android:name
- 작업의 이름입니다. 일부 표준 작업은
Intent
클래스에서 ACTION_string
상수로 정의됩니다. 이러한 작업 중 하나를 이 속성에 할당하려면 ACTION_
다음에 나오는 string
앞에 'android.intent.action.
'을 추가합니다.
예를 들어 ACTION_MAIN
이면 'android.intent.action.MAIN
'을 사용하고 ACTION_WEB_SEARCH
이면 'android.intent.action.WEB_SEARCH
'를 사용합니다.
개발자가 직접 정의하는 작업의 경우 고유성을 위해 앱의 패키지 이름을 접두사로 사용하는 것이 가장 좋습니다. 예를 들어 TRANSMOGRIFY
작업을 다음과 같이 지정할 수 있습니다.
<action android:name="com.example.project.TRANSMOGRIFY" />
- 도입 시기
- API 수준 1
- 참고 항목
<intent-filter>
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-02-23 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"필요한 정보가 없음"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"너무 복잡함/단계 수가 너무 많음"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"오래됨"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"샘플/코드 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]