1.Your content must have a TabHost whose id attribute is 'android.R.id.tabhost'解决办法布局文件中的配置

<?xml version="1.0" encoding="utf-8"?>
<TabHost
android:id="@android:id/tabhost"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/LinearLayout01" android:layout_height="fill_parent" android:layout_width="fill_parent" android:orientation="vertical">

<TabWidget android:id="@android:id/tabs" android:layout_height="wrap_content" android:layout_width="fill_parent">
</TabWidget>
<FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent">
</FrameLayout>
</LinearLayout>
</TabHost>

参考:http://hi.baidu.com/394318511/blog/item/c2e14a3907cd0c3eba998f67.html

2.java.lang.IllegalArgumentException: you must specify a way to create the tab content异常处理

添加图中圈起的代码