title: can't able to click listView item in tabhost
body: <p><a href="https://stackoverflow.com/questions/6692072/onitemclick-listener-in-listview-is-not-working-in-tabhost">onItemClick listener in ListView is not working in TabHost</a></p>
  
  <p>I visited this URL.I don't get waht is he tring to do. here aare my code.</p>
  
  <pre><code>dineTypeTabHost=getTabHost();
  dineTypeTabHost.addTab(dineTypeTabHost.newTabSpec("").setIndicator("",
  getResources().getDrawable(R.drawable.search_icon)).setContent(R.id.tab_search));
  
   foodlistViewForTakeAway=(ListView)findViewById(R.id.tab_takeaway);
  </code></pre>
  
  <p>//setting the onitemselectedlistener &amp; this is working fine in emulator but not in phone</p>
  
  <pre><code> foodlistViewForTakeAway.setOnItemSelectedListener(new OnItemSelectedListener() {
  
          public void onItemSelected(AdapterView&lt;?&gt; adapterView, View view,
                  int position, long id) {
              //              makeAToast("eiv to");
              goToMenuActivity();
          }
  
          public void onNothingSelected(AdapterView&lt;?&gt; arg0) {
              // TODO Auto-generated method stub
  
          }
      });
  </code></pre>
  
  <p>But this is not working,either phone or emulator whenever I tried to setOnItemClickListener</p>
  
  <pre><code>foodlistViewForTakeAway.setOnItemClickListener(new OnItemClickListener() {
  
          public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
                  long arg3) {
              // TODO Auto-generated method stub
              goToMenuActivity();
          }
  
      });
  </code></pre>
  
  <p>please have a look thanx in advance,let me know if u need any elaboration.</p>
  
  <p>myxml file:
      
      </p>
  
  <pre><code>&lt;TextView
      android:id="@+id/textView_name"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_alignParentTop="true"
      android:layout_marginTop="14dp"
      android:text="Food Joint name"
      android:textColor="#0AFFFF"
      android:textSize="18dp"
      android:textStyle="bold" /&gt;
  
  &lt;TextView
      android:id="@+id/TextView_cus"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_below="@+id/textView_name"
      android:layout_marginTop="19dp"
      android:text="Cuisine:"
      android:textColor="#FFFF0A"
      android:textSize="12dp" /&gt;
  
  &lt;TextView
      android:id="@+id/TextView_loc"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_below="@+id/TextView_cus"
      android:layout_marginTop="5dp"
      android:text="Location:"
      android:textColor="#FFFF0A"
      android:textSize="12dp" /&gt;
  
  &lt;TextView
      android:id="@+id/TextView_cnt"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_below="@+id/TextView_loc"
      android:layout_marginTop="5dp"
      android:text="Contacts:"
      android:textColor="#FFFF0A"
      android:textSize="12dp" /&gt;
  
  &lt;TextView
      android:id="@+id/textView_cuisine"
      android:layout_width="200dp"
      android:layout_height="wrap_content"
      android:layout_above="@+id/TextView_loc"
      android:layout_marginLeft="25dp"
      android:layout_toRightOf="@+id/TextView_cnt"
      android:text="japani,thai,khai"
      android:textColor="#FFFF0A"
      android:textSize="12dp" /&gt;
  
  &lt;TextView
      android:id="@+id/textView_location"
      android:layout_width="200dp"
      android:layout_height="wrap_content"
      android:layout_above="@+id/TextView_cnt"
      android:layout_alignLeft="@+id/textView_cuisine"
      android:text="Kolkata,Saltlake,Sector-2"
      android:textColor="#FFFF0A"
      android:textSize="12dp" /&gt;
  
  &lt;TextView
      android:id="@+id/textView_contact"
      android:layout_width="200dp"
      android:layout_height="20dp"
      android:layout_alignBaseline="@+id/TextView_cnt"
      android:layout_alignBottom="@+id/TextView_cnt"
      android:layout_alignLeft="@+id/textView_location"
      android:text="9893939833,033-28399839"
      android:textColor="#FFFF0A"
      android:textSize="12dp" /&gt;
  
  &lt;TextView
      android:id="@+id/TextView_fac"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_below="@+id/textView_contact"
      android:layout_marginTop="5dp"
      android:layout_toLeftOf="@+id/textView_cuisine"
      android:text="Facilities:"
      android:textColor="#FFFF0A"
      android:textSize="12dp" /&gt;
  
  &lt;TextView
      android:id="@+id/textView_facility"
      android:layout_width="200dp"
      android:layout_height="wrap_content"
      android:layout_alignBaseline="@+id/TextView_fac"
      android:layout_alignBottom="@+id/TextView_fac"
      android:layout_alignLeft="@+id/textView_contact"
      android:text="Wifi,AC/Non AC,Parking"
      android:textColor="#FFFF0A"
      android:textSize="12dp" /&gt;
  
  &lt;TextView
      android:id="@+id/TextView_opn"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/TextView_fac"
      android:layout_below="@+id/TextView_fac"
      android:layout_marginTop="5dp"
      android:text="Open Hours:"
      android:textColor="#FFFF0A"
      android:textSize="12dp" /&gt;
  
  &lt;Button
      android:id="@+id/button1"
      android:layout_width="30dp"
      android:layout_height="30dp"
      android:layout_below="@+id/textView_contact"
      android:layout_toRightOf="@+id/textView_contact"
      android:background="@drawable/veg_symbol" /&gt;
  </code></pre>
  
  <p></p>