Code example for SslErrorHandler

Methods: proceed

0
 
            @Override 
            public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
                // TODO: Android does not like the SSL certificate we use, because it has '*' in 
                // it. Proceed with the errors. 
                handler.proceed();
            } 
 
            private void saveCookiesInMemory(String cookie) {
                // Not all URLs will have cookies 
                if (TextUtils.isEmpty(cookie)) {
                    return; 
                } 
 
                String[] pairs = TextUtils.split(cookie, "; ");
                for (String pair : pairs) {
                    int index = pair.indexOf(EQUALS);
                    String key = pair.substring(0, index);
                    this.cookieKeys.add(key);
                } 
            }