I've been testing the behavior of my program by running a memory-eating application that forces my application to be killed. After reading the answers to Where is the bundle of onSaveInstanceState saved?, I'm confused about some of the results I'm seeing.
Both answers given in that link imply that individual activities, not applications, are destroyed when memory needs to be reclaimed. But according to http://developer.android.com/guide/components/processes-and-threads.html, processes - not individual activities - are killed. And since all components usually run in the same process, I would expect the entire application to be killed in low memory situations. My testing is consistent with the Android documentation in that I no longer see the process running when I run my memory eating app.
So if the entire process is killed, am I correct in assuming that the answers given in that question are incorrect? But if so, what's keeping my Bundle around when I resume my application if the process was killed? Is it really guaranteed to never be written to disk?