Java tutorial
//package com.java2s; import android.app.Activity; import android.app.TabActivity; public class Main { @SuppressWarnings("deprecation") public static void goToExtendedStatistics(Activity activity) { TabActivity tabActivity = (TabActivity) activity.getParent(); tabActivity.getTabHost().setCurrentTab(5); } }