@Override public boolean onConsoleMessage(ConsoleMessage consoleMessage) { if (originalWebChromeClient != null) { return originalWebChromeClient.onConsoleMessage(consoleMessage); } return true; }
// console.log in api level 7: http://developer.android.com/guide/developing/debug-tasks.html // Expect this to not compile in a future Android release! @SuppressWarnings("deprecation") @Override public void onConsoleMessage(String message, int lineNumber, String sourceID) { // This is only for Android 2.1 if (android.os.Build.VERSION.SDK_INT == android.os.Build.VERSION_CODES.ECLAIR_MR1) { LOG.d(TAG, "%s: Line %d : %s", sourceID, lineNumber, message); super.onConsoleMessage(message, lineNumber, sourceID); } }
public void onConsoleMessage(String paramString1, int paramInt, String paramString2) { if (Build.VERSION.SDK_INT == 7) { LOG.d( TAG, "%s: Line %d : %s", new Object[] {paramString2, Integer.valueOf(paramInt), paramString1}); super.onConsoleMessage(paramString1, paramInt, paramString2); } }
/** @see AwContentsClient#onConsoleMessage(android.webkit.ConsoleMessage) */ @Override public boolean onConsoleMessage(ConsoleMessage consoleMessage) { TraceEvent.begin(); boolean result; if (mWebChromeClient != null) { if (TRACE) Log.d(TAG, "onConsoleMessage: " + consoleMessage.message()); result = mWebChromeClient.onConsoleMessage(consoleMessage); String message = consoleMessage.message(); if (result && message != null && message.startsWith("[blocked]")) { Log.e(TAG, "Blocked URL: " + message); } } else { result = false; } TraceEvent.end(); return result; }
// console.log in api level 7: http://developer.android.com/guide/developing/debug-tasks.html @Override public void onConsoleMessage(String message, int lineNumber, String sourceID) { LOG.d(TAG, "%s: Line %d : %s", sourceID, lineNumber, message); super.onConsoleMessage(message, lineNumber, sourceID); }
@Override public void onConsoleMessage(String message, int lineNumber, String sourceID) { if (originalWebChromeClient != null) { originalWebChromeClient.onConsoleMessage(message, lineNumber, sourceID); } }
@Override public void onConsoleMessage(String message, int lineNumber, String sourceID) { super.onConsoleMessage(message, lineNumber, sourceID); }