XML 布局中 `TabHost` 的 `android:id` **不是** `@android:id/tabhost` (即 `@android:id/tabhost` 對應 `android.R.id.tabhost`)。
<TabHost
android:id="@android:id/tabhost" <!-- 必須是這個系統 ID -->
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout ...>
<TabWidget android:id="@android:id/tabs" ... />
<FrameLayout android:id="@android:id/tabcontent" ... />
</LinearLayout>
</TabHost>
mTabHost = getTabHost(); // 內部調用 findViewById(android.R.id.tabhost)
若 ID 不匹配,`getTabHost()` 拋出異常。