当我移动到 TabActivity 中的新活动时,我有 3 个活动我想销毁之前的活动
TabHosttabHost = getTabHost();
Intent in1 = new Intent(this, ActivityA.class);
// adding each tab details to tabhost
tabHost.addTab(tabHost
.newTabSpec("1")
.setIndicator("TAB3",
getResources().getDrawable(R.drawable.tab1))
.setContent(it5));
Intent it5 = new Intent(this, ActivityB.class);
// adding each tab details to tabhost
Intent in2 = new Intent(this, ActivityB.class);
tabHost.addTab(tabHost
.newTabSpec("2")
.setIndicator("TAB3",
getResources().getDrawable(R.drawable.tab2))
.setContent(it5));
Intent it5 = new Intent(this, ActivityC.class);
// adding each tab details to tabhost
Intent in3 = new Intent(this, ActivityC.class);
tabHost.addTab(tabHost
.newTabSpec("3")
.setIndicator("TAB3",
getResources().getDrawable(R.drawable.tab3))
.setContent(it5));