BTW: The code to add it is as follows:
public final class EclairClient extends WebChromeClient
private String TAG = "WebErrorLog";
// This is a test of console.log, because we don't have this in Android 2.01
public void addMessageToConsole(String message, int lineNumber, String sourceID)
Log.d(TAG, sourceID + ": Line " + Integer.toString(lineNumber) + " : " + message);
For backwards compatibility with Android 1.6, it's a good idea to have this class extend a pre-existing WebChromeClient, and to dynamically chose the client you instantiate so you can actually get your application working.