Re: [android-developers] onSaveInstanceState method on Fragment not called when corresponding FragmentActivity acts as a tab.

2012-05-23 Thread Bluemercury
Basically you cant use fragment activities has tabs am i correct???only fragments as tabsbut now how do i deal with layout orientation?if there's no activity for each fragment, the layout stays the same even if i have a different layout for landscape On Wednesday, May 23, 2012 6:46:47 A

Re: [android-developers] onSaveInstanceState method on Fragment not called when corresponding FragmentActivity acts as a tab.

2012-05-23 Thread Bluemercury
Hi Dianne! Thanks for the reply. So you're saying i should use Activities(FragmentActivity) has tabs but instead use Fragments for each tab content?. What about dealing with different layouts like: *Activity A-> Fragment A, Activity B->FragmentB for portrait *Actiivity A-> Fragment A+ B for land

Re: [android-developers] onSaveInstanceState method on Fragment not called when corresponding FragmentActivity acts as a tab.

2012-05-22 Thread Dianne Hackborn
(1) If you are using fragments, don't use ActivityGroup or LocalActivityActivityManager. "This class is deprecated. Use the new Fragment and FragmentManager APIs instead; these are also available on older platforms through the Android compatibility package." http://developer.android.com/reference/

[android-developers] onSaveInstanceState method on Fragment not called when corresponding FragmentActivity acts as a tab.

2012-05-22 Thread Bluemercury
Hi! so im currently having a problem regarding the onSaveInstaceState method in the Fragment class. This class is called from a FragmentActivity that acts as a Tab created in another FragmentActivity, but i cant seem to make the call to onSaveInstanceState to happen, here's some code: *mainmenu