title: Can't find the cause "you must specify a way to create the tab indicator"
body: <p>I am getting "you must specify a way to create the tab indicator" error(as per logcat).
  Can't find the reason.</p>
  
  <p>Main class:</p>
  
  <pre><code>package org.tatvamoksh.tml;
  
  
  import android.app.TabActivity; 
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.Window;
  import android.widget.TabHost;
  import android.widget.TabHost.TabSpec;
  
  @SuppressWarnings({ "deprecation" })
  public class MainActivity extends TabActivity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      //Remove title bar
      this.requestWindowFeature(Window.FEATURE_NO_TITLE);
  
      setContentView(R.layout.activity_main);
  
      TabHost tabHost = getTabHost();
  
      // Tab for Tatva
      TabSpec t = tabHost.newTabSpec("Tatva");
      // setting Title and Icon for the Tab
      t.setIndicator("Tatva");
      Intent tatvaIntent = new Intent(this, TatvaActivity.class);
      t.setContent(tatvaIntent);
  
      // Tab for Moksh
      TabSpec m = tabHost.newTabSpec("Moksh");
      m.setIndicator("Moksh");
      Intent mokshIntent = new Intent(this, MokshActivity.class);
      m.setContent(mokshIntent);
  
      //Tab for Updates
      TabSpec u = tabHost.newTabSpec("Updates");
      m.setIndicator("Updates");
      Intent updatesIntent = new Intent(this, Updates.class);
      m.setContent(updatesIntent);
  
      // Adding all TabSpec to TabHost
      tabHost.addTab(t); // Adding Tatva tab
      tabHost.addTab(m); // Adding Moksh tab
      tabHost.addTab(u); // Adding Updates tab
  }
  }
  </code></pre>
  
  <p>layout file:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  tools:context=".MainActivity" &gt;
  
  &lt;TabHost
  android:id="@android:id/tabhost"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content" &gt;
  
      &lt;LinearLayout
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:orientation="vertical" &gt;
  
          &lt;TabWidget
         android:id="@android:id/tabs"
         android:layout_width="match_parent"
         android:layout_height="wrap_content" /&gt;
  
          &lt;FrameLayout
          android:id="@android:id/tabcontent"
          android:layout_width="match_parent"
          android:layout_height="match_parent" &gt;
  
              &lt;ListView
              android:id="@android:id/list"
              android:layout_width="match_parent"
              android:layout_height="match_parent" &gt;
              &lt;/ListView&gt;
          &lt;/FrameLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/TabHost&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Commenting out the following code fixes it.</p>
  
  <pre><code>       //Tab for Updates
      TabSpec u = tabHost.newTabSpec("Updates");
      m.setIndicator("Updates");
      Intent updatesIntent = new Intent(this, Updates.class);
      m.setContent(updatesIntent);
  </code></pre>
  
  <p>I can't guess the exact problem. Would be grateful for any guidance.</p>