0
我想從我的應用程序啓動Android活動時,用戶選擇瀏覽器中的磁鐵鏈接。Android磁鐵鏈接數據過濾器
按照docs,
甲URI由單獨的屬性指定的它的每個部分構成:
方案://主機:端口/路徑或pathPrefix或pathPattern
問題與磁鐵鏈接是他們有不同的模式,如magnet:?xt=.....
。
我想是這樣的
<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="magnet"
android:host="*"
/>
</intent-filter>
,但它不工作(當我打開我的瀏覽器中的磁鐵鏈接的活動沒有發射)。你能幫我正確地宣佈磁鐵鏈接的意圖過濾器嗎?