I assume you have created FragmentTabHost like in in the documentation.
You have now to define each fragment which will be in each tab. For example, in the doc, there are 4 fragments referenced :
mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"),
FragmentStackSupport.CountingFragment.class, null);
mTabHost.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"),
LoaderCursorSupport.CursorLoaderListFragment.class, null);
mTabHost.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"),
LoaderCustomSupport.AppListFragment.class, null);
mTabHost.addTab(mTabHost.newTabSpec("throttle").setIndicator("Throttle"),
LoaderThrottleSupport.ThrottledLoaderListFragment.class, null);
- FragmentStackSupport.CountingFragment
- LoaderCursorSupport.CursorLoaderListFragment
- LoaderCustomSupport.AppListFragment
- LoaderThrottleSupport.ThrottledLoaderListFragment
Those are only examples of Fragment implementation (you can found their implementation in the doc).
Then, it depends what you'd like to have in each tab (display a list, a few buttons,..). You can have a look at the training lesson Building a Dynamic UI with Fragments or the documentation about Fragment.