TabHost Problem in android
- by sairam333
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.