title: Syntax error, insert ";" to complete Statement in Android?
body: <p>Am very new to Android projects. Just i tried to work with <code>TabHost</code> controller in Android. I have got a code from this link, <a href="http://coderzheaven.com/2011/05/android-tabbars-example/" rel="nofollow">coderzheaven.com</a>. But, in this code i received one error <code>Syntax error, insert ";" to complete</code>. Here is my code,</p>
  
  <pre><code>package tab.fragment;
  
  import android.app.TabActivity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.widget.TabHost;
  import android.widget.TabHost.TabSpec;
  
      public class TabBarSample extends TabActivity 
      {
          @Override
          public void onCreate(Bundle savedInstanceState) 
          {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.main);
  
              TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost);
  
              TabSpec firstTabSpec = tabHost.newTabSpec("tab_id1");
              TabSpec secondTabSpec = tabHost.newTabSpec("tab_id2");
              TabSpec thirdTabSpec = tabHost.newTabSpec("tab_id3");
  
              firstTabSpec.setIndicator("Time").setContent(new Intent(this,Time.class));
              secondTabSpec.setIndicator("Date").setContent(new Intent(this,Date.class));
              thirdTabSpec.setIndicator("Option").setContent(new Intent(this,Option.class));
  
              tabHost.addTab(firstTabSpec);
              tabHost.addTab(secondTabSpec);
              tabHost.addTab(thirdTabSpec); //Here the error occuring..
          }
      }
  </code></pre>
  
  <p>How can i do this? Please help me. Thanks in advance. </p>