首页 > webview如何显示手机里的图片??

webview如何显示手机里的图片??

这是webview去调用js的方法
webView.loadUrl("javascript:setPicture('" + "file://" + SelectPhotoUtil.getPictureUrl(getActivity(), data.getData()).toString() + "')");

这是js的方法

 function setPicture(picture){
alert(picture);
 document.getElementById('photo').src =picture;
}

但是图片没办法显示出来


你是用android自带的webview吗

【热门文章】
【热门文章】