Plese Help Me For Creating TabHost in Android Eclips
<p>I Was Complet My ListView but i want to know that how can i add this list view with TabHost </p>

<p><img src="http://i.stack.imgur.com/dDJDD.jpg" alt="enter image description here"></p>

<p><strong>res/values/list_data.xml</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;resources&gt;
&lt;string-array name="adobe_products"&gt;
    &lt;item&gt;Adobe After Effects&lt;/item&gt;
    &lt;item&gt;Adobe Bridge&lt;/item&gt;
    &lt;item&gt;Adobe Dreamweaver&lt;/item&gt;
    &lt;item&gt;Adobe Edge&lt;/item&gt;
    &lt;item&gt;Adobe Fireworks&lt;/item&gt;
    &lt;item&gt;Adobe Flash&lt;/item&gt;
    &lt;item&gt;Adobe Photoshop&lt;/item&gt;
    &lt;item&gt;Adobe Premiere&lt;/item&gt;
    &lt;item&gt;Adobe Reader&lt;/item&gt;
    &lt;item&gt;Adobe Illustrator&lt;/item&gt;
  &lt;/string-array&gt;
</code></pre>

<p></p>

<p><strong>res/layout/list_item.xml</strong> </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;!--  Single List Item Design --&gt;
  &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/label"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:padding="10dip"
      android:textSize="16dip"
      android:textStyle="bold" &gt;
&lt;/TextView&gt;
</code></pre>

<p><strong>AndroidListViewActivity.java</strong></p>

<pre><code> package com.androidhive.androidlistview;

   import android.app.ListActivity;
   import android.content.Intent;
   import android.os.Bundle;
   import android.view.View;
   import android.widget.AdapterView;
   import android.widget.AdapterView.OnItemClickListener;
   import android.widget.ArrayAdapter;
   import android.widget.ListView;
   import android.widget.TextView;

 public class AndroidListViewActivity extends ListActivity {
    @Override
 public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // storing string resources into Array
    String[] adobe_products = getResources().getStringArray(R.array.adobe_products);

    // Binding resources Array to ListAdapter
       this.setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.list_item, R.id.label, adobe_products));

    ListView lv = getListView();

    // listening to single list item on click
    lv.setOnItemClickListener(new OnItemClickListener() {
      public void onItemClick(AdapterView&lt;?&gt; parent, View view,
          int position, long id) {

          // selected item 
          String product = ((TextView) view).getText().toString();

          // Launching new Activity on selecting single List Item
          Intent i = new Intent(getApplicationContext(), SingleListItem.class);
          // sending data to new activity
          i.putExtra("product", product);
          startActivity(i);

        }
     });
  }
}
</code></pre>

<p><strong>res/layout/single_list_item_view.xml</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
 &lt;LinearLayout
 xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
&lt;TextView android:id="@+id/product_label"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:textSize="25dip"
        android:textStyle="bold"
        android:padding="10dip"
        android:textColor="#ffffff"/&gt;    
&lt;/LinearLayout&gt;
</code></pre>

<p><strong>SingleListItem.java</strong> </p>

<pre><code>   package com.androidhive.androidlistview;

    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    import android.widget.TextView;

public class SingleListItem extends Activity{
  @Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    this.setContentView(R.layout.single_list_item_view);

    TextView txtProduct = (TextView) findViewById(R.id.product_label);

    Intent i = getIntent();
    // getting attached intent data
    String product = i.getStringExtra("product");
    // displaying selected product name
    txtProduct.setText(product);

 }
}
</code></pre>

<p><strong>AndroidManifest.xml</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.androidhive.androidlistview"
  android:versionCode="1"
  android:versionName="1.0"&gt;
&lt;uses-sdk android:minSdkVersion="8" /&gt;

&lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
    &lt;activity android:name=".AndroidListViewActivity"
              android:label="Android List View"&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;activity android:name=".SingleListItem"
                android:label="Single Item Selected"&gt;&lt;/activity&gt;
&lt;/application&gt;
</code></pre>

<p></p>
