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