Fragments removed after Activity recreate
I am developing an app, where fragments are changing in the container of one Activity. I am using FragmentTransaction.replace(R.id.container, fragment, tag) to switch between fragments. All fragments has setRetainInstance(true). When I press Home button and go back to app everything is ok, but when I turn on developers option "Don't keep activities" and do the same, I end up with "clean" activity where there is only the first (initial) fragment presents. In other words, after Activity is reinitialised all fragments are lost. How can I avoid that and save fragments state?
Android Emulator window not displaying properly
Realm relation field always null
Appwidget: Button press on a widget changes TextView's text
How to filter list view of drawer?
Video broadcast with Android's Camera2 API
Android facebook isn't able to send/post to a friend using SDK 4.1
Requesting and allowing WRITE_EXTERNAL_STORAGE permission at runtime has no effects on the current session
DexIndexOverflowException in android
Using Android Studio click Run, the new code does not take effect
putting a variable inside a button or image declaration
Embed camera in Activity/Fragment like Instagram
How do I center the thumb of a seekbar in android?
Same value of latitude and longitude repeated
About START_STICKY in Service
Android Null pointer exception while using Async Task method [duplicate]
xBest Practice to check for NullPointerException