- <!--在AndroidManifest.xml中,定义Activity的Intent-filter-->
- <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="alipays" />
- </intent-filter>
- <!--VIEW,DEFAULT和BROWSABLE一个都不能少-->
- <!--最后的scheme是注册sf://这样的协议,当网页链接到这种协议的时候,就调用这个程序。-->
来源: http://www.phpxs.com/code/1007779/