How do you use the setCurrentTab command ? this is the code I have for it right now… When I debug it I get “C: Tab 3” so the saving aspect is working fine but the tab still isnt changing? any help for me? Thanks!
TabHost th = (TabHost)findViewById(R.id.tabhost);
th.setup();
TabSpec specs = th.newTabSpec("tag1");
specs.setContent(R.id.tab1);
specs.setIndicator("Zone Manager");
th.addTab(specs);
specs = th.newTabSpec("tag2");
specs.setContent(R.id.tab2);
specs.setIndicator("",res.getDrawable(R.drawable.ic_tab_vaccontrol));
th.addTab(specs);
specs = th.newTabSpec("tag3");
specs.setContent(R.id.tab3);
specs.setIndicator("Tab 3");
th.addTab(specs);
Tab = (settings.getInt("Tab", 1));
Log.d("TabStuff", "C: Tab " + Tab);
th.setCurrentTab(Tab);
Try to use
setCurrentTabByTag(String nameOfTheTabSpec)method instead the simple setCurrentTab