In the docs it says to ensure you save a fragment's state when using tabs with the action bar so that when you switch tabs the fragment will look as it did before. How is this done? Using the sample for handling tabs, onSavedInstanceState is not called when the tab is switched so where would I save the state? Do I do it at the activity level? I only want the state to be transient.
Thanks
Fragment.onSaveInstanceState() is the proper place. That will be called when the state needs to be saved. If it isn't called, it doesn't need to be saved yet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With