How can change tabspecification text into another tab activity?
<p>I am working in android. I have used tab host and tab widget. i have 4 activity to add as view.</p>

<p>this is my program:</p>

<p>public class TabDemo extends TabActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);</p>

<pre><code>    TabHost tabHost=getTabHost();
    // no need to call TabHost.Setup()        

    //First Tab
    TabSpec spec1=tabHost.newTabSpec("Tab 1");
    spec1.setIndicator("Tab 1",getResources().getDrawable(R.drawable.sun));
    Intent in1=new Intent(this, Act1.class);
    spec1.setContent(in1);

    TabSpec spec2=tabHost.newTabSpec("Tab 2");
    spec2.setIndicator("Tab 2",getResources().getDrawable(R.drawable.chart));
    Intent in2=new Intent(this,Act2.class);
    spec2.setContent(in2);

    tabHost.addTab(spec2);
    tabHost.addTab(spec3);
}
</code></pre>

<p>}</p>

<p>Now in second Activity i want to change this text "Check-In" on a button click. </p>

<p>spec2.setIndicator("Check-In",getResources().getDrawable(R.drawable.chart));</p>

<p>so please tell me how can i do this. means how can i change setIndicator text of super class in its child class.</p>

<p>If any other query related to my question please feel free to ask me anytime.</p>

<p>Thank you in advance.</p>
