Use a WebClient on your web view as follow :
webView.setWebViewClient(new WebViewClient(){
@Override public void onReceivedError(WebView view, WebResourceRequest request,
WebResourceError error) {
super.onReceivedError(view, request, error);
// Do something
}
});