Code example for WebView: Displaying web pages

Methods: clearCacheloadUrl

0
		settings.setLightTouchEnabled(true);
		webView.setWebViewClient(webClient);
		webView.post(new Runnable() {
			public void run() { 
				if (CLEAR_CACHE_ON_LOAD) {
					webView.clearCache(true);
				} 
				webView.loadUrl(url);
			} 
		}); 
 
	} 
 
	private WebViewClient webClient = new WebViewClient() {
 
		@Override 
		public void onPageStarted(WebView view, String url, Bitmap favicon) { 
			super.onPageStarted(view, url, favicon); 
			loadingSpinner.setVisibility(android.view.View.VISIBLE); 
			webView.setVisibility(android.view.View.INVISIBLE); 
		}