This is my code:
webView.setWebViewClient(new WebViewClient() {
@Override
public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
super.onReceivedError(view, errorCode, description, failingUrl);
view.loadUrl("file:///android_res/drawable/sale_screen_20170912.jpg");
}
});
I want to load an image from drawable resource when receiving an error from webview. But this is what I got when try to load this image from drawable folder.
API level of the project is 17.