- 문법:
-
<queries> <package android:name="string" /> <intent> ... </intent> <provider android:authorities="list" /> ... </queries>
- 포함된 위치:
<manifest>
- 설명:
앱이 상호작용할 다른 앱 집합을 지정합니다. 이러한 다른 앱은 패키지 이름, 인텐트 서명 또는 제공자 권한을 기준으로 지정됩니다(이 페이지의 다음 섹션 참고).
참고: 일부 패키지는 자동으로 표시됩니다. 앱은 설치된 다른 앱에 관한 쿼리에서 항상 이러한 패키지를 확인합니다. 다른 패키지를 보려면
<queries>
요소를 사용하여 패키지 공개 상태 확대를 위한 앱 요구사항을 선언하세요.Android의 패키지 공개 상태 필터링에서
<queries>
요소를 사용하는 방법을 자세히 알아보세요.- 하위 요소
- 도입 수준:
- API 수준 30
- 참고 항목:
- Android에서 패키지 공개 상태 필터링
<queries>
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[null,null,["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# <queries\u003e\n\nsyntax:\n:\n\n ```xml\n \u003cqueries\u003e\n \u003cpackage android:name=\"string\" /\u003e\n \u003cintent\u003e\n ...\n \u003c/intent\u003e\n \u003cprovider android:authorities=\"list\" /\u003e\n ...\n \u003c/queries\u003e\n ```\n\ncontained in:\n: [\u003cmanifest\u003e](/guide/topics/manifest/manifest-element)\n\ndescription:\n\n: Specifies the set of other apps that an app\n intends to interact with. These other apps are specified\n [by package name](#package), [by intent\n signature](#intent), or [by provider authority](#provider), as described in\n the following sections on this page.\n\n **Note:** Some packages are\n [visible automatically](/training/package-visibility/automatic). Your\n app always sees these packages in its queries for other installed apps. To\n view other packages, declare your app's need for increased package visibility\n using the `\u003cqueries\u003e` element.\n\n Learn more about how to use the `\u003cqueries\u003e` element in\n [Package visibility filtering on Android](/training/package-visibility).\n\nchild elements:\n:\n\n `\u003cpackage\u003e`\n\n : Specifies a single app that your app intends to access. This other\n app might integrate with your app, or your app might use services that the\n other app provides.\n\n attributes:\n\n `android:name`\n : **Required.** Specifies the package name of the other app.\n\n `\u003cintent\u003e`\n\n : Specifies an [intent filter\n signature](/training/basics/intents/filters). Your app can discover other apps that have matching\n [`\u003cintent-filter\u003e`](/guide/topics/manifest/intent-filter-element)\n elements.\n\n **Note:** There are some restrictions on the\n options that you can include in this `\u003cintent\u003e` element,\n compared to a typical intent filter signature. Learn more about these\n restrictions in [Packages\n that match an intent filter signature](/training/package-visibility/declaring#intent-filter-signature).\n\n `\u003cprovider\u003e`\n\n : Specifies one or more\n [content\n provider authorities](/guide/topics/providers/content-provider-basics#ContentURIs). Your app can discover other apps whose content\n providers use the specified authorities.\n\n **Note:** There are some restrictions on the\n options that you can include in this `\u003cprovider\u003e` element,\n compared to a typical\n [`\u003cprovider\u003e`](/guide/topics/manifest/provider-element)\n manifest element. Usually, you only specify the\n `android:authorities` attribute.\n\nintroduced in:\n: API level 30\n\nsee also:\n: [Package visibility filtering on Android](/training/package-visibility)"]]