Code example for WebViewClient

0
			layout.addView(mWebView, new FrameLayout.LayoutParams(
				LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT,
				Gravity.NO_GRAVITY));
 
			mWebView.setWebChromeClient(new WebChromeClient());
			mWebView.setWebViewClient(new WebViewClient());
			mWebView.addJavascriptInterface(
				new WebViewPluginInterface(gameObject), "Unity");
 
			WebSettings webSettings = mWebView.getSettings();
			webSettings.setSupportZoom(false);
			webSettings.setJavaScriptEnabled(true);
			webSettings.setPluginsEnabled(true);
 
		}}); 
	} 
 
	public void Destroy() 
	{ 
		Activity a = UnityPlayer.currentActivity;
Stop searching for code, let great code find you!  Add Codota to your java IDE