다음 작품 :안드로이드에서 내 앱을 여는 도메인 링크를 얻으려면 어떻게해야합니까? 미세
내가 이메일에있는 링크 www.mycompany.com
클릭하고 내 응용 프로그램 시작 : 그러나
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE"/>
<data android:host="www.mycompany.com/download" android:scheme="http"/>
</intent-filter>
, 나는 다음과 같습니다 작업 할 무엇을하지만 작동하지 않습니다 :
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="www.mycompany.com/download" android:scheme="http" />
</intent-filter>
왜 구분 :
나는 링크 www.mycompany.com/download
로 제한 할 수 있도록하려면? 앱으로 내 전체 웹 사이트를 차단하고 싶지 않습니다. 그 특정 도메인이 앱으로 리디렉션되기를 바랄뿐입니다. 어떻게해야합니까?
'host'은 typo.kindly 그것을 한 번 봐 가지고있다 그것을 추측 snippet.I 모두 코드에서와 동일합니다. –