Code example for WebView

Methods: getSettingssetWebViewClient, post

0
		this.url = url;
		setWebView(); 
	} 
 
	public void setWebView() { 
		WebSettings settings = webView.getSettings();
		settings.setJavaScriptEnabled(true);
		settings.setPluginsEnabled(true);
		settings.setLightTouchEnabled(true);
		webView.setWebViewClient(webClient);
		webView.post(new Runnable() {
			public void run() { 
				if (CLEAR_CACHE_ON_LOAD) {
					webView.clearCache(true);
				} 
				webView.loadUrl(url);
			} 
		}); 
 
	} 
Stop searching for code, let great code find you!  Add Codota to your java IDE