I have some javascript running in WebView, and I want to receive console messages about errors in JS. In accordance with the instructions at http://developer.android.com/guide/webapps/debugging.html I overrided methods
WebChromeClient.onConsoleMessage(String message, int lineNumber, String sourceID)
and
WebChromeClient.onConsoleMessage(ConsoleMessage cm)
,
redirecting messages to logcat. In android 2.1 it works well, but in android 2.2 none of this methods are called.
What I am doing wrong?
Thanks.
It seems that HTC disabled console.log on Android 2.2 devices. check out this post:
How to display console.log() output in PhoneGap app using Eclipse and HTC Desire HD?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With