change TabActivity title dynamically according to selected activity tab data
<p>i have created MyTabActivity extending  TabActivity class with two tabs.</p>

<pre><code>public class MyTabActivity extends TabActivity {

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

      setTitle("My App Name");

      final TabHost tabHost = getTabHost();

      tabHost.addTab(tabHost.newTabSpec(TAB_1).setIndicator(TAB_1, getResources().getDrawable(R.drawable.tab1)).setContent(new Intent(this, first.class)));

      tabHost.addTab(tabHost.newTabSpec(TAB_2).setIndicator(TAB_2, getResources().getDrawable(R.drawable.tab2)).setContent(new Intent(this, second.class)));

       tabHost.setOnTabChangedListener(new OnTabChangeListener() {

       public void onTabChanged(String tabId) {

          }
       });

       tabHost.setCurrentTabByTag(TAB_1);
    }
}
</code></pre>

<p>i need to change the title of MyTabActivity according to change in one of activity data.</p>

<pre><code>public class first extends Activity {
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        //change the MyTabActivity title from here ???
   }

}
</code></pre>

<p>Please help me how to do this.</p>

<p>Thanks</p>
