Android: FragmentTabHost - java.lang.IllegalArgumentException: you must specify a way to create the tab content
问题 I have the following in a class for creating a FragmentTabHost : public class TabsActivity extends FragmentActivity { private FragmentTabHost mTabHost; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tabs); mTabHost = (FragmentTabHost)findViewById(android.R.id.tabhost); mTabHost.setup(this, getSupportFragmentManager(), R.id.realtabcontent); TabHost.TabSpec exploreSpec = mTabHost.newTabSpec("explore").setIndicator(