|
[superwebview]
Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER
[复制链接]
集成superview后出现Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER。
把<provider android:authorities="com.uzmap.pkg.any.ups" android:exported="false" android:label="udmg" android:name="com.uzmap.pkg.uzapp.UProvider"/>
注销后,正常,但是引发新的问题,调用api.accessNative,代码无法进入native onHtml5AccessRequest 函数了。
protected boolean onHtml5AccessRequest(WebViewProvider provider, UZModuleContext moduleContext) {
String name = moduleContext.optString("name");
mModuleContext = moduleContext;
//"requestEvent"与assets/widget/html/wind.html页面的发送请求相匹配
if("CMD_ZHIFU".equals(name)){
Intent intent = new Intent(this.getApplicationContext(), ZhiFu.class);
//intent.putExtra("headerSavePath", headerSavePath);
this.startActivity(intent);
}
//defaultHandleHtml5AccessRequest(moduleContext);
return true;
}
求解,急。
|
|