Code example for WebResourceResponse

		private WebResourceResponse getUtf8EncodedCssWebResourceResponse(InputStream data) {
            return new WebResourceResponse("text/css", "UTF-8", data);
//        @Override 
//	    public boolean shouldOverrideUrlLoading(WebView view, String url) { 
//			Log.i("shouldOverrideUrlLoading", "url:" + url); 
//			// the path to .css file is relative to baseurl, here is "file:///android_asset/" 
//			String htmlData = "<!DOCTYPE html> <head> <meta charset='UTF-8'><title>Load the CSS file from the sdcard</title><link href='www/resource/new-theme.css' rel='stylesheet'></head><body><div id='show_me'>origin is grey; new CSS in assets is png Mocoven Avatar on the below; external CSS in sdcard is Base64 Mocoven Avatar on the top;</div> <a href=''>Google</a> <div id='mocoven'>png file</div> </body> </html>"; 
//			webview.loadDataWithBaseURL("file:///android_asset/", htmlData, "text/html", "UTF-8", null); 
//	        return true; 
//	    } 
Stop searching for code, let great code find you!  Add Codota to your java IDE