I reported an issue but i yet to get the response...
http://code.google.com/p/android/issues/detail?id=24273

FYI: I have attached my complete test project named "Fragments" in the
above reported issue.

Could you just let me know the best way to save the state of the views
in fragments? because after a couple of fragment replacement, if you
try to do orientation change and come back to previous fragment, the
view state of fragments which is saved in the bundle is lost.

Is that i have to save the state of views in each fragment using the
bundle in onSaveInstanceState() and retrieve it back through
onCreate(), onCreateView(), or onActivityCreated()??? If this is the
case i have already tried it and it doesn't work which i reported as
an issue "http://code.google.com/p/android/issues/detail?id=24273";

(OR)

Is that I need to save the state of each views in each fragment in the
Activity itself?? If this is the case, then it will be a huge task to
save each and every views in each fragment to be saved in activity and
i think this will be crazy.

I googled for it and found a link which says a solution for it, but
it's not using the bundle functionality to restore the view state,
which you could find in the below link.

http://stackoverflow.com/questions/8260451/fragment-backstack-bug-when-replacing-fragments-in-a-transaction

Hope you got what i am looking for.

-- 
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

Reply via email to