Code example for WebView

Methods: getUrl

0
	private static final String CURRENT_URL = "CURRENT_URL";
	WebView webview;
 
	@Override 
	protected void onSaveInstanceState(Bundle outState) {
		outState.putString(CURRENT_URL, webview.getUrl());
		super.onSaveInstanceState(outState);
	} 
 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		ActionBarDetector.setDisplayHomeAsUpEnabled(this, true);
		setContentView(R.layout.help); 
		webview = (WebView) findViewById(R.id.helpwebview);
		WebSettings websettings = webview.getSettings();
		webview.setWebViewClient(new HelpWebViewClient());
		websettings.setSavePassword(false);
		websettings.setSaveFormData(false);
		websettings.setJavaScriptEnabled(false);
		websettings.setSupportZoom(false);
		websettings.setCacheMode(WebSettings.LOAD_NO_CACHE);