how to get service class's public member variable to TabActivity
<p>I want to get service class's member variable to a Class which extends TabActivity.</p>

<pre><code> public class MainActivity extends TabActivity {
        private TabHost tabHost;

        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.tab);
                this.tabHost = (TabHost)findViewById(android.R.id.tabhost);

                TabSpec thirdTabSpec = tabHost.newTabSpec("tid1");

                firstTabSpec.setIndicator("출근").setContent(new Intent(this,FirstTab.class));

                tabHost.addTab(firstTabSpec);
            }

        protected void onPause(){
           super.onPause();

           // HERE I WANT TO receive value from FirstTab Activity
           // firstabOption =  ???  .CURRENT_OPTION_IDX ??

        }
}
</code></pre>

<p>and the <code>FirstTab</code> class is</p>

<pre><code>   public class FirstTab extends Activity {
        public int CURRENT_OPTION_IDX;

......
....
....
....

@Override
    public boolean onOptionsItemSelected(MenuItem item) {

        super.onOptionsItemSelected(item);

        CURRENT_OPTION_IDX = item.getItemId();
            // save option
    }

        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);

            setContentView(R.layout.first_tab);
        }

    }
</code></pre>

<p>because of the lack of my english, please excuse my brevity</p>

<p>I have a <code>TabActivity</code> class which has 3 tabs. and I did some action changing TextView's text on  the one of tab.
and I want to save the values when <code>TabActivity</code>'s <code>OnPause</code> occurs.</p>
