Code example for WebView: Displaying web pages

Methods: loadUrlrestoreStatesetWebViewClient

0
		super.onCreate(icicle);
		AnalyticsUtils.getInstance(this).trackPageView("/Help");
		setContentView(R.xml.help);
 
		webView = (WebView) findViewById(R.id.helpbrowser);
		webView.setWebViewClient(new HelpClient());
 
		Intent intent = getIntent();
		try { 
			if (icicle != null) {
				webView.restoreState(icicle);
			} else if (intent != null) {
				String page = intent.getStringExtra(REQUESTED_PAGE_KEY);
				if (page != null && page.length() > 0) {
					webView.loadUrl(BASE_URL + page);
				} else { 
					webView.loadUrl(BASE_URL + DEFAULT_PAGE);
				} 
			} else { 
				webView.loadUrl(BASE_URL + DEFAULT_PAGE);
			} 
		} catch (NullPointerException npe) {
			Log.e("HelpActivity", npe.toString());
		} 
		backButton = (Button) findViewById(R.id.helpBackButton);
Connect your IDE to all the code out there  Get Codota for Java