Extending an ActivityGroup Class with a MapActivity
<p>I know that we're not allowed to extend a class with 2 classes. But on my ActivityGroup I need to display a MapView.
How am I able to do that? Can anybody provide me a solution? That would be very helpful.
Thank you.</p>

<p>Here's my code:</p>

<pre><code>public class MainActivity extends ActivityGroup  {

    private TabHost mTabHost;


    private void setupTabHost() {
        mTabHost = (TabHost) findViewById(android.R.id.tabhost);
        mTabHost.setup(this.getLocalActivityManager());
    }



    /** Called when the activity is first created. */

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // construct the tabhost
        setContentView(R.layout.main);

        setupTabHost();

        setupTabAll(new TextView(this), " ", (ProjectsList.class));
        setupTabFavorites(new TextView(this), " ", (Projects.class));
        setupTabHistorical(new TextView(this), " ", (ProjectsList.class));
        setupTabPartner(new TextView(this), " ", (ProjectsList.class));

        final Button refresh = (Button) findViewById(R.id.btn_nav_impressum);
        refresh.setOnClickListener(impressum_listener);

        final Button search =(Button) findViewById(R.id.btn_nav_locater);
        search.setOnClickListener(location_listener);


    }

    private void setupTabAll(final View view, final String tag, final Class&lt;?&gt; context) {
        View tabview = createTabViewAll(mTabHost.getContext(), tag);
        TabSpec ts1 = mTabHost.newTabSpec("tab1"); 
        ts1.setIndicator(tabview); 
        ts1.setContent(new Intent(this,context)); 
        mTabHost.addTab(ts1);
    }

    private static View createTabViewAll(final Context context, final String text) {
        View view = LayoutInflater.from(context).inflate(R.layout.toolbar_all_bg, null);
        TextView tv = (TextView) view.findViewById(R.id.tabsText);
        tv.setText(text);
        return view;
    }   
}
</code></pre>

<p>Otherwise I can change the class to extend MapActivity, but then the problem is with this method:</p>

<pre><code>**mTabHost.setup(this.getLocalActivityManager());**
</code></pre>

<p>How am I able to solve that?
Thank you.</p>
