Update on this: Setting 'android:launchMode="singleTop"' at the sub- activity definition on the manifest file. Solves my problem.
Can someone shed a light on this?. Thanks. CH On Nov 23, 11:59 am, chentschel <[email protected]> wrote: > 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 [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

