Hi!,
   I'm extending ActivityGroup class and implemented a custom tabHost
and widgets for my app. Can someone shed a light on how are the
Activities fife-time inside an ActivityGroup?.

Im getting a weird behavior when using the following code to send a
new intent to the current sub-activity, then change tab, and getting
back to original tab. (TAB1 -> TAB2 -> TAB1)

LocalActivityManager lm = getLocalActivityManager();

Intent i = new Intent(this, lm.getCurrentActivity().getClass());
i.setAction(WeegohApp.INTENT_ACTION_FILTER_SHC);
i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);

lm.startActivity(tabHost.getCurrentTabTag(), i);


What i see from debug..

onSaveInstanceState() is called on TAB1, then TAB2 is current
subActivity, but when going back to TAB1 onCreate() is called.

onCreate() is not called with the same test without using the
onNewIntent() described above.

Thanks in advance !
CH


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to