WebView wv = (WebView) findViewById(R.id.webview1);
wv.setWebViewClient(new Callback());
WebSettings webSettings = wv.getSettings();
webSettings.setBuiltInZoomControls(true);
final String mimeType = "text/html";
final String encoding = "UTF-8";
String html = "<H1>A simple HTML page</H1><body>" +"<a>link using anchor tag</a>"+
"<p>The quick brown fox jumps over the lazy dog</p>";
wv.loadDataWithBaseURL("", html, mimeType, encoding, "");
链接后,我想要显示图像。那么如果该图像存储在sdcard的文件夹中,如何放置该图像的地址,/images
即属性中的地址应该是什么src
?
问候