Android Setting Default Tab In Tab-activity
android TabActivity launches the FragmentActivity associated with the first tab added in the sequence before setting tabhost.setCurretnTab(4); @Override public void onCreate(Bundle
Solution 1:
publicvoidsetCurrentTab(int index)publicvoidsetCurrentTabByTag(String tag)you can like this
if (isNotLogin) {
tabHost.setCurrentTabByTag("Setting");
}
after addTab()
http://developer.android.com/reference/android/widget/TabHost.html#setCurrentTab(int)
Post a Comment for "Android Setting Default Tab In Tab-activity"