How to "run method" from different android class
<p>First and foremost, like so many, I have just recently began to try and learn Java and Android Development.  I am following some tutorials and so on.  Anyhow, I am attempting to do something that is probably very simple but I am unsure of syntax to complete, and because of such, not sure how to search it on the internet with any success.</p>

<p>My question:  I have a "Main.java" file and a second "Tabs.java".  The main has everything you would expect from a default stub:</p>

<pre><code>package com.example.main;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class Main extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

}
</code></pre>

<p>My Tabs.java looks like:</p>

<pre><code>package com.example.main;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class Tabs extends Activity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tabs);

        //Initiate tabs
        TabHost th = (TabHost)findViewById(R.id.tabhost);
        th.setup();

        //Create tab1
        TabSpec specs = th.newTabSpec("tag1");
        specs.setContent(R.id.tab1);
        specs.setIndicator("Reservation List");
        th.addTab(specs);
    }
}
</code></pre>

<p>My hope is to initiate this tabs class on program start, to setup a tabbed view.  I could throw it into the main class but I thought I would attempt to keep the code neater by separating them out.  How can I go about completing this?</p>
