unfortunately app has stopped in emulator
<p>This is my mainactivity program.when i run this code the emulator shows that unforunately app has stopprd.please post a solution for this.Thanks in Advance.....I got the error for many application.so this answer will help me to overcome for all the remaining issues........</p>

<pre><code>    package com.example.tab;

import android.app.Activity;
import android.content.res.Resources;
import android.net.http.AndroidHttpClient;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
public class MainActivity extends Activity {
    private TabSpec tspec;
    private TabHost tabHost;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.activity_main);
        tabHost=(TabHost)findViewById(R.id.my_tabhost);
        tabHost.setup();
        Resources res=getResources();
        tspec=tabHost.newTabSpec("Tab1");
        tspec.setContent(R.id.clock);
        tspec.setIndicator("Clock");
        tabHost.addTab(tspec);
        tspec=tabHost.newTabSpec("Tab2");
        tspec.setContent(R.id.calendar);
        tspec.setIndicator("Calendar");
        tabHost.addTab(tspec);
        tspec=tabHost.newTabSpec("Tab3");
        tspec.setContent(R.id.date);
        tspec.setIndicator("Date");
        tabHost.addTab(tspec);

      }
</code></pre>

<p><strong>this is my manifest file:</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.tab"
    android:versionCode="1"
    android:versionName="1.0" &gt;

    &lt;uses-sdk
        android:minSdkVersion="12"
        android:targetSdkVersion="17" /&gt;

    &lt;application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" &gt;
        &lt;activity
            android:name="com.example.tab.MainActivity"
            android:label="@string/app_name" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;

                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;/application&gt;

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