我可以使用下面的意圖過濾器勾我的應用程序進入「共享頁面」功能:如何使用intent-filter過濾器限制特定網址的Android共享意圖?
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
但我想去遠一點,限制過濾器與它們特定的網址意圖,爲YouTube視頻的示例網址。我嘗試過這樣但它不起作用:
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:mimeType="text/plain"
android:scheme="http"
android:host="m.youtube.com"
/>
有什麼建議嗎?
我想要做同樣的事情。看來這是不可能的。 – tasomaniac 2016-01-21 13:24:42