각 인스턴트 환경에는 하나 이상의 진입점이 있으며, 이는
앱 또는 게임 내 활동을
추적할 수 있습니다 앱이나 게임에 여러 개의
진입점의 경우 각 시작 활동은 해결 가능해야 합니다. 다시 말해
고유한 URL과 일치해야 합니다.
인스턴트 앱 또는 게임의 진입점 URL이 도메인을 공유하는 경우 각 URL은
진입점은 해당 도메인 내의 다른 경로에 대응해야 합니다. 대상
예를 들어 세 개의 개별적인 지도 3개가 있어야 하는 내비게이션 앱을
진입점: 현재 위치 찾기, 주변 식당 검색 및 공유
볼 수 있습니다 이러한 각 기능은 웹 도메인 내의 리소스와
'example.com'). 진입점마다 고유한 URL을 제공하려면 다른
사용할 수 있습니다.
기능
URL
위치 찾기
http://example.com/finder
근처 음식점
http://example.com/restaurants
위치 공유
http://example.com/share
URL 경로 접두어 선언
한 진입점의 URL이
다른 진입점을 사용할 수 없습니다. 이 경우
한 진입점의 전체 경로와 다른 진입점의 경로 접두사
다음 코드 스니펫에 나와 있습니다.
AndroidManifest.xml
<manifest>
<activity android:name=".CatalogActivity" >
<intent-filter>
<!-- List of items in the catalog. -->
<data android:path="/items" />
</intent-filter>
</activity>
<activity android:name=".ItemActivity" >
<intent-filter>
<!-- Information about a specific item in the catalog. -->
<data android:pathPrefix="/items/" />
</intent-filter>
</manifest>
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2024-08-23(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-08-23(UTC)"],[],[]]