title: Android: Adding a ListActivity to TabHost results in ClassCastException
body: <p>Using the example provided by Google, I've sucessfully created a TabHost.</p>
  
  <pre><code>    // Create an Intent to launch an Activity for the tab (to be reused)
      intent = new Intent().setClass(this, SearchListActivity.class);
  
      // Initialize a TabSpec for each tab and add it to the TabHost
      spec = tabHost.newTabSpec("search").setIndicator("Search",
                        res.getDrawable(R.drawable.icon))
                    .setContent(intent);
  
      tabHost.addTab(spec);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public class SearchListActivity extends ListActivity
  </code></pre>
  
  <p>However if I try to add a ListActivity to the TabHost, it results in a ClassCast exception:</p>
  
  <pre><code>java.lang.RuntimeException: Unable to start activity
  ComponentInfo{com.companyName.appName/com.companyName.appName.MainActivity}:
  java.lang.RuntimeException: Unable to start activity
  ComponentInfo{com.companyName.appName/com.companyName.appName.SearchListActivity}:
  java.lang.ClassCastException: android.app.Application
  </code></pre>
  
  <p>Is it not possible to add a ListActivity to a TabHost?</p>