Code example for WebViewClient

Methods: onReceivedError

            mClient.onFormResubmission(view, dontResend, resend);
        public void onReceivedError(WebView view, int errorCode,
                String description, String failingUrl) {
            mClient.onReceivedError(view, errorCode, description, failingUrl);
    // Subclass of WebChromeClient to display javascript dialogs. 
    private class SubWindowChromeClient extends WebChromeClient {
        // This subwindow's tab. 
        private final Tab mTab;
        // The main WebChromeClient. 
        private final WebChromeClient mClient;
        SubWindowChromeClient(Tab t, WebChromeClient client) {
            mTab = t;
            mClient = client;