Code example for WebView: Displaying web pages

Methods: getTitleloadUrl, x 1

0
		if (v == null) {
			localWebView = getGameClientWebView();
		} else { 
			localWebView = (WebView) v.findViewById(R.id.wv1);
		} 
		String str = localWebView.getTitle();
		if ((str != null) && (str.equalsIgnoreCase("login")))
		{ 
			exitGame(); 
		} 
		if ((str != null) && (str.equalsIgnoreCase("avalon")))
		{ 
			localWebView.loadUrl("javascript:showYesNo(LNG.CONFIRM_EXIT,function(){droid.exit();});");
		} 
		if ((this.currentView != null) && (this.currentView.equals("f_city.html")))
		{ 
			localWebView.loadUrl("javascript:showYesNo('" + getString(R.string.sure_to_exit_game) + "',function(){droid.exit();});");
		} else if ((str != null) && (str.equalsIgnoreCase("Emross")))
		{ 
			localWebView.loadUrl("javascript:showCity();");
		} 
		return true; 
	} 
	 
	private boolean ingameReturnKey()