Exception in Tab program
Posted
by Kooper
on Stack Overflow
See other posts from Stack Overflow
or by Kooper
Published on 2010-06-12T05:56:41Z
Indexed on
2010/06/12
6:02 UTC
Read the original article
Hit count: 223
android
Here is main code:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Resources res = getResources();
TabHost tabHost = getTabHost();
Intent intent= new Intent();
intent.setClass(this,EGCQuery.class);
tabHost.addTab(tabHost.newTabSpe("egcquery").setIndicator ("EGCQuery",
res.getDrawable(R.drawable.egcquery))
.setContent(intent));
tabHost.addTab(tabHost.newTabSpec("patientinfo").setIndicator("PatientInfo",
res.getDrawable(R.drawable.patientinfo))
.setContent(R.layout.main2));
tabHost.addTab(tabHost.newTabSpec("compinterp").setIndicator("Comp_Interp",
res.getDrawable(R.drawable.compinterp))
.setContent(R.layout.main3));
tabHost.setCurrentTab(0)
© Stack Overflow or respective owner