android自定义协议和html加载时自动尝试调用本地APP

2015-02-18 0 405
android自定义协议和html加载时自动尝试调用本地APP
<!--在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://这样的协议,当网页链接到这种协议的时候,就调用这个程序。-->

遇见资源网 html android自定义协议和html加载时自动尝试调用本地APP http://www.ox520.com/14030.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务