Code example for TabHost

Methods: setCurrentTab

0
				final int matchingTabIndex = tabIndex;
				 
				currentActivity.runOnUiThread( new Runnable() {
					@Override 
					public void run() { 
						tabHost.setCurrentTab( matchingTabIndex );
					} 
				}); 
				 
				return new Result(true, resultMessage);
			} 
			 
			Result result = new Result(false, "Was unable to find a matching tab");
			result.setExtras( foundTabs );
			return result;
		} else { 
			return new Result(false, "The current activity is not a TabActivity: " + currentActivity.getLocalClassName() );
		} 
	} 
 
	@Override