在我的應用程序中,我設置了一個意圖過濾器來匹配特定類型的鏈接,如果在Web瀏覽器或其他字段中單擊。它目前看起來像這樣:可能會繞過Android意圖過濾器?
<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.mydomain.com"
android:scheme="http" />
<data
android:host="mydomain.com"
android:scheme="http" />
<data
android:host="m.mydomain.com"
android:scheme="http" />
</intent-filter>
這很好。如果你點擊一個鏈接,說http://www.mydomain.com/article_name然後用戶可以選擇打開應用程序中的文章,我可以顯示內容的唯一。下面是問題 - 在應用程序中,我想爲用戶提供一個選項,以便仍然可以突破並「在瀏覽器中打開」。然而,如果我這樣做,只是試圖啓動瀏覽器的意圖,我的應用程序再次捕捉鏈接,我們圍繞一圈。
我該如何強制在瀏覽器中打開鏈接?