title: Android Exception: Did you forget to call 'public void setup (LocalActivityManager activityGroup)'
body: <p>MyCode:</p>
  
  <pre><code>public class MainActivity extends Activity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          final TabHost tabHost = (TabHost) findViewById(R.id.tabhost);
  
  //      LocalActivityManager mLocalActivityManager = new LocalActivityManager(this, false);
          tabHost.setup();
  
          TabSpec tabSpecCheckIn = tabHost.newTabSpec(getResources().getText(R.string.button_check_in).toString());
  
          tabSpecCheckIn.setIndicator(getResources().getText(R.string.button_check_in).toString(), getResources().getDrawable(android.R.drawable.star_off));
          tabSpecCheckIn.setContent(R.id.check_in);
          tabHost.addTab(tabSpecCheckIn);
  
          TabSpec tabSpecReview = tabHost.newTabSpec(getResources().getText(R.string.button_review).toString());
          tabSpecReview.setIndicator(getResources().getText(R.string.button_review).toString(), getResources().getDrawable(android.R.drawable.star_off));
          tabSpecReview.setContent(R.id.review);
          tabHost.addTab(tabSpecReview);
  
          TabSpec tabSpecMyCircles = tabHost.newTabSpec(getResources().getText(R.string.button_my_circles).toString());
          tabSpecMyCircles.setIndicator(getResources().getText(R.string.button_my_circles).toString(), getResources().getDrawable(android.R.drawable.star_off));
          tabSpecMyCircles.setContent(R.id.my_circle);
          tabHost.addTab(tabSpecMyCircles);
  
          TabSpec tabSpecMySettings = tabHost.newTabSpec(getResources().getText(R.string.button_settings).toString());
          tabSpecMySettings.setIndicator(getResources().getText(R.string.button_settings).toString(), getResources().getDrawable(android.R.drawable.star_off));
          tabSpecMySettings.setContent(new Intent(this,CheckInActivity.class));
          tabHost.addTab(tabSpecMySettings);
  
          tabHost.setCurrentTab(0);
      }
  }
  </code></pre>
  
  <p>XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical" android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
  
      &lt;TabHost android:id="@+id/tabhost"
          android:layout_width="fill_parent" android:layout_height="fill_parent"&gt;
  
          &lt;TabWidget android:layout_width="fill_parent"
              android:layout_height="wrap_content" android:id="@android:id/tabs"
              android:layout_gravity="bottom" /&gt;
  
  
          &lt;FrameLayout android:id="@android:id/tabcontent"
              android:layout_width="fill_parent" android:layout_height="fill_parent"
              android:paddingTop="65px"&gt;
  
              &lt;LinearLayout android:id="@+id/check_in"
                  android:orientation="vertical" android:layout_width="fill_parent"
                  android:layout_height="fill_parent" android:padding="5px"&gt;
                  &lt;TextView android:layout_width="wrap_content"
                      android:layout_height="wrap_content" android:text="date"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout android:id="@+id/review"
                  android:orientation="vertical" android:layout_width="fill_parent"
                  android:layout_height="fill_parent" android:padding="5px"&gt;
                  &lt;TextView android:layout_width="wrap_content"
                      android:layout_height="wrap_content" android:text="lieu"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout android:id="@+id/my_circle"
                  android:orientation="vertical" android:layout_width="fill_parent"
                  android:layout_height="fill_parent" android:padding="5px"&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout android:id="@+id/setting"
                  android:orientation="vertical" android:layout_width="fill_parent"
                  android:layout_height="fill_parent" android:padding="5px"&gt;
              &lt;/LinearLayout&gt;
          &lt;/FrameLayout&gt;
      &lt;/TabHost&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>When I click the button of Setting, exctption:</p>
  
  <blockquote>
    <p>Did you forget to call 'public void setup (LocalActivityManager activityGroup)'</p>
  </blockquote>
  
  <p>Who Can help me. I try to extends from <code>TabActiviy</code> or <code>ActivityGroup</code> still other exceptions!!!<br>
  I want to put the buttons of Tabhost at bottom and when I click the button invoke different Activities!</p>