TabActivity that create an intent onClick button but the tabhost of activity receiver disappear
问题 I have 2 activity: A, B. The first is an TabActivity and the second an Activity. Inside A i have a clickable button that make an intent to call the other activity. public class A extends TabActivity implements OnClickListener { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); tabHost = getTabHost(); tabHost.addTab(tabHost.newTabSpec("a").setContent(R.id.a).setIndicator("a")); b = new Intent(this,B.class); tabHost.addTab