Code example for HttpAuthHandler

Methods: cancel

     * @param realm the realm for which authentication is required 
     * @see Webview#getHttpAuthUsernamePassword 
    public void onReceivedHttpAuthRequest(WebView view,
            HttpAuthHandler handler, String host, String realm) {
     * Give the host application a chance to handle the key event synchronously. 
     * e.g. menu shortcut key events need to be filtered this way. If return 
     * true, WebView will not handle the key event. If return false, WebView 
     * will always handle the key event, so none of the super in the view chain 
     * will see the key event. The default behavior returns false. 
     * @param view The WebView that is initiating the callback. 
     * @param event The key event. 
     * @return True if the host application wants to handle the key event 
     *         itself, otherwise return false