我希望我的活动能够捕获当意图(浏览器)调用链接时的情况:
http://host/info?username=samplename
而不是当:
http://host/info?username=noname
这里是来自AndroidManifest.xml的代码
<intent-filter>
<action android:name="android.intent.action.VIEW"></action>
<category android:name="android.intent.category.DEFAULT"></category>
<category android:name="android.intent.category.BROWSABLE"></category>\
<data android:host="host" android:pathPrefix="/info?username=samplename" android:scheme="http"></data>
</intent-filter>
我已经可以处理简单前缀,例如android:pathPrefix="/info" 但是我遇到了字符?的问题 我尝试使用\?,但不起作用 http://developer.android.com/guide/topics/manifest/data-element.html#path 有人有什么想法吗? 谢谢