TabHost Problem in android
Posted
by sairam333
on Stack Overflow
See other posts from Stack Overflow
or by sairam333
Published on 2010-04-16T07:10:32Z
Indexed on
2010/04/16
7:13 UTC
Read the original article
Hit count: 573
android
when i use the TabActivity in my application it display the error,In below final TabHost tabHost = getTabHost();
tabHost.addTab(tabHost.newTabSpec("tab1")
.setIndicator("tab1")
.setContent(this));
tabHost.addTab(tabHost.newTabSpec("tab2")
.setIndicator("tab2")
.setContent(this));
tabHost.addTab(tabHost.newTabSpec("tab3")
.setIndicator("tab3")
.setContent(this));
In the above code error displayed at final TabHost tabHost = getTabHost(); as the method is undefined.But in sample application they use the same function at it is working.In my application why it is not working.Tell me the solution for it.Thanks in advance.
© Stack Overflow or respective owner