0

A TabActivity start other activity when i click on a tab,

How to send information to parent (tabActivity) and don't finish current activity?

My tabactivity start another activity like this :

mTabHost.addTab(

mTabHost.newTabSpec(TAB_OPTIONS)

.setIndicator(TabImgFond5)

.setContent(intentOptions));

Inside my new Activity Option, i would like to Call method of Tabactivity, is it possible ?

Thanks

Community
  • 1
  • 1
NicoMinsk
  • 1,716
  • 6
  • 28
  • 53

1 Answers1

2

Call getParent() from the tab's activity to get at the TabActivity.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • Thanks it's working ! Onglets GestionnaireTab = (Onglets) this.getParent(); GestionnaireTab.setNbMessage(5); – NicoMinsk Jun 07 '10 at 20:55