首先清单文件
<intent-filter> <action android:name="android.intent.action.MAIN" /> </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:host="***" android:pathPrefix="/goods" android:scheme="********" /> </intent-filter>
然后Acticity中
getIntent().getData().getQueryParameter("goodsId");
网页部分参考
//创建一个隐藏的iframe
ifr.src = "********://***/goods/?goodsId=${bizId}";