开发者

android webview use <img> load a image from sdcard

i'm trying us开发者_Go百科e webview to load a image from sdcard

i use this path :

file///sdcard/1.png

but i didn't see the picture.

is anything wrong?


One solution is to put your HTML and image file in the asset folder, and load the HTML file from there. Another solution is to use the method loadDataWithBaseURL() of WebView.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜