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.