title: Did you forget to call 'public void setup(LocalActivityManager activityGroup)'?
body: <p>I am writing a simple tab view using fragment tab ( because TabActivity is being deprecated )</p>
  
  <p>But when I try to run it, it alerts error "Did you forget to call 'public void setup(LocalActivityManager activityGroup)'?". Also I am noticed that ActivityGroup and setup(void) are being deprecated too.</p>
  
  <p>how can it be fixed?</p>
  
  <pre><code>public class ListTab extends FragmentActivity{
      @Override
      protected void onCreate(Bundle savedInstanceState) {
  
          super.onCreate(savedInstanceState);
          setContentView(R.layout.list_tab);
  
          FragmentTabHost listTab = (FragmentTabHost)findViewById(R.id.list_tab_host);
  
          listTab.setup(this, this.getSupportFragmentManager(), R.id.realtabcontent);
  
          TabSpec allPostSpec = listTab.newTabSpec("all_post");
          allPostSpec.setIndicator("All");
          Intent allPostIntent = new Intent(this,ListPost.class);
          allPostSpec.setContent(allPostIntent);
  
          listTab.addTab(allPostSpec);
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
  
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.list_post, menu);
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // Handle action bar item clicks here. The action bar will
          // automatically handle clicks on the Home/Up button, so long
          // as you specify a parent activity in AndroidManifest.xml.
          int id = item.getItemId();
          if (id == R.id.action_settings) {
              return true;
          }
          return super.onOptionsItemSelected(item);
      }
  }
  </code></pre>