There is activity with TabHost and three TabHost :
tabHost = getTabHost(); //tabHost.setup(); TabHost.TabSpec tabSpec; tabSpec = tabHost.newTabSpec("tag1"); tabSpec.setIndicator("Tab 1"); tabSpec.setContent(new Intent(this, Tab1Econom.class)); tabHost.addTab(tabSpec); tabSpec = tabHost.newTabSpec("tag2"); tabSpec.setIndicator("Tab 2"); tabSpec.setContent(new Intent(this, Tab2Normal.class)); tabHost.addTab(tabSpec); tabSpec = tabHost.newTabSpec("tag3"); tabSpec.setIndicator("Tab 3"); tabSpec.setContent(new Intent(this, Tab3Vip.class)); tabHost.addTab(tabSpec); tabHost.setCurrentTab(0);// таб по умолчанию при создании tabHost.setOnTabChangedListener(this); On tabs there are three TabActivity with input buttons for other activity . The problem is that when you exit the buttons, we return to the main activity with a tab by default. How can I make it return not on the Tab by default, but on the Tab on which the button was pressed.