Code example for SslErrorHandler

Methods: proceed

0
 
    // enable https 
    @Override 
    public void onReceivedSslError(WebView view, SslErrorHandler handler,
                                   SslError error) {
        handler.proceed();
    } 
 
    @Override 
    public void onPageFinished(WebView view, String url) {
        if (url.startsWith("http://www.ingress.com/intel")
         || url.startsWith("https://www.ingress.com/intel")) {
            Log.d("iitcm", "injecting iitc..");
            view.loadUrl("javascript: " + this.mIitcScript);
        } 
        super.onPageFinished(view, url);
    } 
 
    /** 
     * this method is called automatically when the Google login form is opened. 
Stop searching for code, let great code find you!  Add Codota to your java IDE