我想顯示來自http的圖像不存儲在本地。我無法顯示圖像。使用webview顯示來自html的http圖像
webView = (WebView) findViewById(R.id.webView1);
webView.getSettings().setJavaScriptEnabled(true);
String customHtml = "<html><body>"
+ "<h1>Hello, WebView</h1>"
+"<img src="+"'http://dreamatico.com/data_images/flowers/flowers-5.jpg'"+" height="+142+" width="+142+">"
+ "</body></html>";
webView.loadData(customHtml, "text/html", "UTF-8");
加載HTML文件中有你提供上網權限在AndroidManifest.xml文件? – 2015-03-03 07:12:37
你已添加。 – humy 2015-03-03 07:51:38