Code example for ConsoleMessage

Methods: lineNumbermessagesourceId

0
 
    private final static String TAG = TomahawkWebChromeClient.class.getName();
 
    @Override 
    public boolean onConsoleMessage(ConsoleMessage cm) {
        Log.d(TAG, cm.message() + " -- From line " + cm.lineNumber() + " of " + cm.sourceId());
        return true; 
    } 
 
    @Override 
    public void onConsoleMessage(String message, int lineNumber, String sourceID) {
        Log.d(TAG,
                "invoked: onConsoleMessage() - " + sourceID + ":" + lineNumber + " - " + message);
        super.onConsoleMessage(message, lineNumber, sourceID);
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java