Tabs in android is not working on platform 2.1
<p>I have created the xml file for creating tabs  but when i run it.It gives me that your application has stopped unexpectedly  I am trying to add tabs simply.I am running on 2.1 platform.
Here's my xml code</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" &gt;

    &lt;TabHost
        android:id="@+id/tabhost"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" &gt;

        &lt;LinearLayout
            android:id="@+id/linearLayout1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="vertical" &gt;

            &lt;TabWidget
                android:id="@android:id/tabs"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" &gt;
            &lt;/TabWidget&gt;

            &lt;FrameLayout
                android:id="@android:id/tabcontent"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent" &gt;

                &lt;LinearLayout
                    android:id="@+id/tab1"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent" &gt;

                    &lt;Button
                        android:id="@+id/startwatch"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Start" /&gt;

                    &lt;Button
                        android:id="@+id/stopwatch"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Stop" /&gt;

                    &lt;TextView
                        android:id="@+id/TvShowResults"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Small Text"
                         /&gt;

                &lt;/LinearLayout&gt;

                &lt;LinearLayout
                    android:id="@+id/tab2"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"&gt;
                    &lt;TextView
                        android:id="@+id/textView2"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Small Text"
                         /&gt;


                &lt;/LinearLayout&gt;

                &lt;LinearLayout
                    android:id="@+id/tab3"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent" &gt;
                    &lt;TextView
                        android:id="@+id/textView3"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Small Text"
                         /&gt;

                &lt;/LinearLayout&gt;
            &lt;/FrameLayout&gt;
        &lt;/LinearLayout&gt;
    &lt;/TabHost&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>here's the LogCat</p>

<pre><code>03-14 01:34:46.604: E/AndroidRuntime(364): Uncaught handler: thread main exiting due to uncaught exception
03-14 01:34:46.622: E/AndroidRuntime(364): java.lang.NullPointerException
03-14 01:34:46.622: E/AndroidRuntime(364):  at android.widget.TabHost.dispatchWindowFocusChanged(TabHost.java:295)
03-14 01:34:46.622: E/AndroidRuntime(364):  at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:661)
03-14 01:34:46.622: E/AndroidRuntime(364):  at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:661)
03-14 01:34:46.622: E/AndroidRuntime(364):  at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:661)
03-14 01:34:46.622: E/AndroidRuntime(364):  at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:661)
03-14 01:34:46.622: E/AndroidRuntime(364):  at android.view.ViewRoot.handleMessage(ViewRoot.java:1819)
03-14 01:34:46.622: E/AndroidRuntime(364):  at android.os.Handler.dispatchMessage(Handler.java:99)
03-14 01:34:46.622: E/AndroidRuntime(364):  at android.os.Looper.loop(Looper.java:123)
03-14 01:34:46.622: E/AndroidRuntime(364):  at android.app.ActivityThread.main(ActivityThread.java:4363)
03-14 01:34:46.622: E/AndroidRuntime(364):  at java.lang.reflect.Method.invokeNative(Native Method)
03-14 01:34:46.622: E/AndroidRuntime(364):  at java.lang.reflect.Method.invoke(Method.java:521)
03-14 01:34:46.622: E/AndroidRuntime(364):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
03-14 01:34:46.622: E/AndroidRuntime(364):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
03-14 01:34:46.622: E/AndroidRuntime(364):  at dalvik.system.NativeStart.main(Native Method)
</code></pre>
