<a href='/r/test'></a>
reddit의 하위를 나타내는 링크 가 있습니다. 사용자가 링크를 클릭 할 때 intent-filter
하위 (예 :)를로드하는 활동을 시작 하기 위해 사용자 지정을 사용하려고합니다 reddit.com/r/test
.
지금 내 매니페스트의 모습은 다음과 같습니다.
<activity android:name="reddit.RSubActivity">
<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:scheme="/r/.*" android:host="path"/>
</intent-filter>
</activity>
그러나 링크를 클릭하면 해당 앱이 다음과 충돌합니다.
09-02 17:26:29.425: E/AndroidRuntime(16972): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=/r/test (has extras) }
나는 답을 찾아 보았는데 맞는 것 같다. 누군가가 무슨 일이 일어나고 있는지 말해 줄 수 있습니까?
전체 "테스트"하위 레딧 URL은 다음과 같습니다 https://www.reddit.com/r/test/
.
모든 하위 레딧 URL ( "test"용 URL뿐만 아니라)을 처리하려면 다음을 시도하십시오.
<activity android:name="reddit.RSubActivity">
<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:scheme="https"
android:host="www.reddit.com"
android:pathPrefix="/r/"/>
</intent-filter>
</activity>
자세한 정보 는 <data>
요소 문서를 참조하십시오 .
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다