title: Exception with Tabs: "you must specify a way to create tab indicator"
body: <p>My application consists three tabs and two of them have the ListView and one is just activity with TextView. To get main activity with Tabs I use the example from developers.anroid.com <a href="http://developer.android.com/resources/tutorials/views/hello-tabwidget.html" rel="nofollow">http://developer.android.com/resources/tutorials/views/hello-tabwidget.html</a>
  According to this example my layout is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TabHost
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:id="@android:id/tabhost"
  &gt;
  
  &lt;LinearLayout
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  &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"
  /&gt;
  
  
  &lt;/LinearLayout&gt;
  
  &lt;/TabHost&gt;
  </code></pre>
  
  <p>So, next code is code of activity (there are only two pages):</p>
  
  <pre><code>public class MainActivity extends TabActivity {
  
  
  
  @Override
  public void onCreate(Bundle savedInstanceState) 
  {
  
      super.onCreate(savedInstanceState);
      setContentView(R.layout.tabs_layout_start_page);
  
      Resources res = getResources();
      TabHost tabHost = getTabHost();
      TabHost.TabSpec spec;
      Intent intent;
  
      intent = new Intent(this, ListViewTab1Activity.class);
      spec = tabHost.newTabSpec("Page1").setIndicator("Page 1", res.getDrawable(R.drawable.icon))
      .setContent(intent);
      tabHost.addTab(spec);
  
      intent = new Intent(this, ListViewTab2Activity.class);
      spec = tabHost.newTabSpec("Page 2").setIndicator("Page 2", res.getDrawable(R.drawable.icon))
      .setContent(intent);
      tabHost.addTab(spec);
  
      tabHost.setCurrentTab(1);
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Every intent is pointed to another activity, which has hard-coded ListView in layout and code to define it from string-array from resources. But after starting I get exception 
  IllegalArgument Exception ""you must specify a way to create tab indicator". and it makes me stopped, please, help me.
  thanks for everyone</p>