Created
April 22, 2012 22:18
-
-
Save MikeLarned/2467264 to your computer and use it in GitHub Desktop.
WebChromeClient onConsoleMessage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mWebView.setWebChromeClient(new WebChromeClient() { | |
| public boolean onConsoleMessage(ConsoleMessage cm) { | |
| Log.d("JS-ConsoleLog", cm.message() + " -- From line " | |
| + cm.lineNumber() + " of " | |
| + cm.sourceId() ); | |
| return true; | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment