web调用启动app条件:
1、被启动app的androidMainfest.xml中配置Activity的action中添加intent-filter节点,再添加category节点设name为“android.intent.category.BROWSABLE”
2、被启动app的androidMainfest.xml中配置Activity的action中添加intent-filter节点,再添加action节点设name为“android.intent.action.VIEW”
3、被启动app的androidMainfest.xml中配置Activity的action中添加intent-filter节点,再添加data节点设scheme,如:<action android:scheme="app1"></action>
设置再web页面:
可以使用href = "app1://?name='wuxiutong'&age= 26"即可调用并且传递相关数据。
在app中
Uri uri = getIntent().getData(); 解析uri即可获得相应数据。