I have a fragment which shows system state like battery, wifi or other things like that and I have it at the top of Activities.
It's possible to save state between activities instead of initialize it when activities are created?
Something like save fragment when activity is closed and restore when next activity is created. Basically having same fragment instance along all activities.
I have read that it's possible to save state via FragmentManager
in the application context but I don't find so much information about it. Do you have an example of that?