Code example for WebChromeClient

Methods: onConsoleMessage

0
 
            @Override 
            public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
                // Call the old version of this function for backwards compatability. 
                super.onConsoleMessage(consoleMessage.message(), consoleMessage.lineNumber(), consoleMessage.sourceId());
                return mWebChromeClient.onConsoleMessage(consoleMessage);
            } 
        }); 
         
         
        super.setPictureListener(new PictureListener() {
            @Override 
            public void onNewPicture(WebView webview, Picture picture) {
                mWebViewExClient.onNewPicture(webview, picture);
            } 
        }); 
         
        //################################################################## 
        // sample setting 
        //################################################################## 
        setOnTouchListener(new View.OnTouchListener() {