Code example for ConsoleMessage

Methods: lineNumber, message, messageLevel

0
		    return true; 
		} 
 
		@Override 
		public boolean onConsoleMessage(ConsoleMessage msg) {
		    Log.d("WebClientConsole", "[" + String.valueOf(msg.messageLevel()) + "] " + msg.lineNumber() + ": " + msg.message());
		    return true; 
		}		     
	    }); 
 
	ViewWebSocketFactory wsFactory = new ViewWebSocketFactory(this);
	addJavascriptInterface(wsFactory, "WebSocketFactory");
	clearCache(true);
    } 
}