Maybe I have found something:
>From TabActivity, set a OnTabChangedListener,
then the listener is called:
String tabTag = getTabHost().getCurrentTabTag();
if tabTag.isEqual(TAB_B) {
MyBActivity bActivity = (MyBActivity
)getLocalActivityManager().getActivity(tabTag);
bActivity->refreshFromDB(); //
}
I will try that.
Thierry.
2010/6/13 Thierry Legras <[email protected]>
> Hi,
>
> I have a TabActivity with 3 tabs:
> - tab A is created with a TabContentFactory,
> - tabs B & C are created as Activity.
>
> When I switch from B to C, B activity is resumed (onResume called). But
> when i switch from A to B, onResume is NOT called.
> Unfortunately i need B to be aware that it has been selected. How can B
> activity knows that i has just been selected?
>
> Any clue?
> Thanks for any help.
> --
> Thierry.
>
--
Thierry.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en