Code example for ConsoleMessage

Methods: lineNumbermessagesourceId

0
			public void onProgressChanged(WebView view, int progress) {            
				dialog.setProgress(progress);
            } 
			 
			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();