Example usage for android.app TabActivity getTabHost

List of usage examples for android.app TabActivity getTabHost

Introduction

In this page you can find the example usage for android.app TabActivity getTabHost.

Prototype

public TabHost getTabHost() 

Source Link

Document

Returns the TabHost the activity is using to host its tabs.

Usage

From source file:Main.java

public static void goToStatistics(Activity activity) {
    TabActivity tabActivity = (TabActivity) activity.getParent();
    tabActivity.getTabHost().setCurrentTab(3);
}

From source file:Main.java

@SuppressWarnings("deprecation")
public static void goToExtendedStatistics(Activity activity) {
    TabActivity tabActivity = (TabActivity) activity.getParent();
    tabActivity.getTabHost().setCurrentTab(5);
}

From source file:Main.java

public static void GoToStoreView(Activity activity) {

    TabActivity tabActivity = (TabActivity) activity.getParent();
    tabActivity.getTabHost().setCurrentTab(1);

}