Wednesday, February 8, 2012

[android-developers] All fragments are reloaded when return from an activity

Hi,

I have an activity with a couple of fragments. Only one fragment is displayed at a time and I switch from one fragment to another using the FragmentTransaction.replace method. It works alright.

A strange behavior happens when i allow user to leave the fragment and launch another activity. Immediately when user presses the back key, the previous activity will relaunch all the fragments inside of it.

Could someone help explains this behavior?


Thanks,

darakok

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate