tags:

views:

3297

answers:

2

I need sample code to create TabHost in android. can anyone help me.

+3  A: 

The Android Developer site has an excellent fully worked code sample for creating tabs in Android using the TabWidget and TabHost.

Check out Hello, TabWidget.

Reto Meier
what drives me nuts about their examples? That they don't contain all the information necessary. Take the line 'mTabHost = getTabHost();' for example - there is no prior reference to or description of 'mTabHost'. And, their other tab example has typo's that stop it from compiling. And, when it's compiled, it 'core dumps'.
KevinDTimm
A: 

The answers to this question list all the issues with the sample code, and the workarounds that people have found.

cdonner