Code example for SslErrorHandler

Methods: cancel

0
        @Override 
        public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
            super.onReceivedSslError(view, handler, error);
 
            sendErrorToListener(new FacebookDialogException(null, ERROR_FAILED_SSL_HANDSHAKE, null));
            handler.cancel();
            WebDialog.this.dismiss();
        } 
 
        @Override 
        public void onPageStarted(WebView view, String url, Bitmap favicon) {
            Utility.logd(LOG_TAG, "Webview loading URL: " + url);
            super.onPageStarted(view, url, favicon);
            if (!isDetached) {
                spinner.show();
            } 
        } 
 
        @Override 
        public void onPageFinished(WebView view, String url) {
Experience pair programming with AI  Get Codota for Java