I am working on an android project with a few other developers and a bug was raised where Instance states were not being retained on garbage collection:
The actual bug reported:
The app has one activity with a bunch of fragments. If "don't keep activities" is checked in developer options and the user clicks on any button that changes the visible fragments, and then navigates away from the app and then back, it relaunches the app to its original state instead of the last state.
Another Dev on the project raised the following concern:
"The saving of instances will cause the apps in memory size to bloat. Already, because of the amount of drawables, the apps memory size is too high.
Its ok, if the app restarts after a while of non usage by the user."
My understanding was that the savedInstance Bundle actually gets written to physical memory, is that not correct? Is the above quote a valid concern?