How To Findfragmentbytag That Is Created In Another Activity?
I need to find a fragment that was created by another activity that may be destroyed. However, it seems that when the activity is destroyed, the fragment stack is lost as well. Is
Solution 1:
Fragment lifecycle is sync with its activity life cycle, for example, when activity enters stop state, fragment goes to stop state as well. If you want to use a fragment in your activity, you need to inflate it again.
http://developer.android.com/reference/android/app/Fragment.html
a Fragment's lifecycle is tied to its owning activity, it has its own wrinkle on the standard activity lifecycle
Post a Comment for "How To Findfragmentbytag That Is Created In Another Activity?"