Code example for WebChromeClient

0
		 
		rendererRuntime = RendererRuntime.getInstance();
		 
		mWebView = new QWebView(this);
		mWebView.getSettings().setJavaScriptEnabled(true);
		mWebView.setWebChromeClient(new WebChromeClient());
		mWebView.addJavascriptInterface(rendererRuntime, "runtime");
		mWebView.loadData(mContent, "text/html", null);
		 
		setContentView(mWebView);
		 
		//Log.i("klaus", mContent); 
 
	} 
 
	@Override 
	protected void onPause() { 
		super.onPause(); 
	} 
 
	@Override