Code example for HttpAuthHandler

Methods: cancel

0
        } 
 
        @Override 
        public void onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host,
                String realm) {
            // cancel http auth request 
            handler.cancel();
        } 
 
        @Override 
        public void onPageStarted(WebView view, String url, Bitmap favicon) {
            pageStartCount++;
            Log.v(LOGTAG, "onPageStarted: " + url);
        } 
 
        @Override 
        public void onPageFinished(WebView view, String url) {
            Log.v(LOGTAG, "onPageFinished: " + url);
            // let handleTimeout take care of finishing the page 
            if(!timeoutFlag)
                handler.postDelayed(new WebViewStatusChecker(), 500);