title: Android TabView error?
body: <p>I am trying to implement Tab View for my activity. I am getting an error that states. </p>
  
  <p><strong>java.lang.IllegalArgumentException: you must specify a way to create the tab indicator</strong></p>
  
  <pre><code>     Resources res = getResources(); // Resource object to get Drawables
          TabHost tabHost = getTabHost();  // The activity TabHost
          TabHost.TabSpec spec;  // Resusable TabSpec for each tab
          Intent intent;  // Reusable Intent for each tab
  
          // Create an Intent to launch an Activity for the tab (to be reused)
          intent = new Intent().setClass(this, MonthActivity.class);
  
          // Initialize a TabSpec for each tab and add it to the TabHost
          spec = tabHost.newTabSpec("Month")
                        .setContent(intent);
          tabHost.addTab(spec);
  
          // Do the same for the other tabs
          intent = new Intent().setClass(this, WeekActivity.class);
          spec = tabHost.newTabSpec("Week")
                  .setContent(intent);
          tabHost.addTab(spec);
  
          intent = new Intent().setClass(this, DayActivity.class);
          spec = tabHost.newTabSpec("Day")
                  .setContent(intent);
          tabHost.addTab(spec);
          tabHost.setCurrentTab(2);
  </code></pre>
  
  <p>This is my xml and I've declared the Activities in the manifest. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &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:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"
      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;/FrameLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>Where am I making my mistake? Thanks for your time and input.</p>