Java tutorial
//package com.java2s; import android.app.Activity; import android.app.TabActivity; public class Main { public static void goToStatistics(Activity activity) { TabActivity tabActivity = (TabActivity) activity.getParent(); tabActivity.getTabHost().setCurrentTab(3); } }