web view from Html Codes , how can i do that ?
String base = Environment.getExternalStorageDirectory().getAbsolutePath().toString(); String imagePath = "file://"+ base + "/image_name.jpg"; String html = "<html><head></head><body> <img src=\""+ imagePath + "\"> </body></html>"; webView.loadDataWithBaseURL("", html, "text/html","utf-8", ""); directly from https://stackoverflow.com/questions/42266264/how-to-load-local-image-in-android-webview
https://stackoverflow.com/a/22369804/6182948 use loadDataWithBaseURL
Обсуждают сегодня