Code example for WebView: Displaying web pages

Methods: canGoBackloadUrlstopLoading

0
		webView.loadUrl(getIntent().getStringExtra(URL_PARAMETER_KEY));
	} 
 
	@Override 
	public void onBackPressed() { 
		if (webView.canGoBack()) {
			webView.goBack();
		} else { 
			webView.stopLoading();
			webView.loadUrl("about:blank");
			super.onBackPressed(); 
		} 
	} 
 
	@Override 
	protected void onPause() { 
		webView.stopLoading();
 
		super.onPause(); 
	}