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.
精彩评论