我有一个问题,当我试图打开<a href="tohome://print?https://qcblob.blob.core.windows.net/testing/LabelTesting/label_sample2.png">items</a>这个链接,不要打开应用程序。
我的舱单档案:
<activity
android:name=".Main2Activity"
android:exported="true">
<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="print?" android:scheme="tohome"/>
</intent-filter>
</activity>发布于 2016-04-07 23:35:56
如果这是目标链接
tohome://print?https://qcblob.blob.core.windows.net/testing/LabelTesting/label_sample2.png那么,在这种情况下,您的host只是print。
<data android:host="print" android:scheme="tohome"/>典型的URL将遵循以下格式
scheme://[user:password@]host[:port]path?query
在这种格式中,?字符将是分隔主机和实际查询字符串的分隔符。
https://stackoverflow.com/questions/36488224
复制相似问题