Code example for ConsoleMessage

Methods: lineNumbermessagesourceId

0
	       } 
		}); 
		 
		wv.setWebChromeClient(new WebChromeClient() {
			public boolean onConsoleMessage(ConsoleMessage cm) {
			    Log.d("MyApplication", cm.message() + " -- From line "
			                         + cm.lineNumber() + " of "
			                         + cm.sourceId() );
			    return true; 
			  } 
		}); 
 
		// give ourselves a ton of permissions 
		wv.getSettings().setJavaScriptEnabled(true);
		wv.getSettings().setGeolocationEnabled(true);
		wv.getSettings().setDomStorageEnabled(true);
 
		wv.clearCache(true);
		wv.clearHistory();