Hi Xu Xing, thanks for your advise! Do you further know, if the method "getSettings()" of the class "XWalkView" will be available again in an upcoming release?
Best regards Linus Original Message processed by david® RE: [Crosswalk-help] Getting console logs of XWalkView (16-Jan-2015 6:04) From: Xu, Xing To (2):Linus Hülsmann, [email protected] Hi, Linus, We didnt support XWalkWebChromeClient::onConsoleMessage yet. So in your case, the onConsoleMessage will not be called. We have planned to implement it with XWalkUIClient::onConsoleMessage. The related implementation is under review and validation. you will see it soon in next release. From: Crosswalk-help [mailto:[email protected]] On Behalf Of Linus Hülsmann Sent: Tuesday, December 16, 2014 00:46 To: [email protected] Subject: [Crosswalk-help] Getting console logs of XWalkView Hello, I'm trying to intercept console logs of a XWalkView with the following code: webView.setXWalkWebChromeClient(new XWalkWebChromeClient(webView){ @Override public boolean onConsoleMessage(ConsoleMessage consoleMessage) { ConsoleMessage.MessageLevel messageLevel = consoleMessage.messageLevel(); String message = "[" + messageLevel.name() + ":CONSOLE(" + consoleMessage.lineNumber() + ")] \"" + consoleMessage.message() + "\", source: " + consoleMessage.sourceId() + " (" + consoleMessage.lineNumber() +")"; switch(messageLevel){ case DEBUG: L.d(TAG, message); break; case ERROR: L.e(TAG, message); break; case WARNING: L.i(TAG, message); break; case LOG: L.i(TAG, message); break; case TIP: L.i(TAG, message); break; default: L.i(TAG, message); } return true; }} But unfortunately the method "onConsoleMessage" is never called after writing console logs. Am I doing something wrong here?I've tested the code on an Android stick with Android 4.4.2 Best regards, Linus To: [email protected] [email protected]
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
