title: How can I use a listview without extending ListActivity in my class?
body: <p>I have an application with various tabs (on a tabhost). Each tab is an activity that extends activity and has some <code>textfields</code> and things on it.</p>
  
  <p>Now, I need that my tabs have inside a listview, but in the example from Android developer guide says that you have to extend ListActivity and not Activity.</p>
  
  <p>Basically, I need to merge these two tutorials:</p>
  
  <ul>
  <li><p><em><a href="http://developer.android.com/resources/tutorials/views/hello-listview.html" rel="nofollow noreferrer">List View</a></em></p></li>
  <li><p><em><a href="http://developer.android.com/resources/tutorials/views/hello-tabwidget.html" rel="nofollow noreferrer">Layouts</a></em></p></li>
  </ul>
  
  <p>How can I use a <code>listview</code> without extending <code>listactivity</code> on my class?</p>
  
  <p>My XML file:</p>
  
  <pre><code>&lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@android:id/tabhost"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
      &lt;LinearLayout
          android:orientation="vertical"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:padding="5dp"&gt;
          &lt;TabWidget
              android:id="@android:id/tabs"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content" /&gt;
          &lt;FrameLayout
              android:id="@android:id/tabcontent"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:padding="5dp"/&gt;
      &lt;/LinearLayout&gt;
  &lt;/TabHost&gt;
  </code></pre>