If I have two activities, one main activity with a button and another floating activity. When the button is pressed the floating activity shows up. The main activity is still visible but not in the foreground anymore. The activity stack now has the floating activity at the top and the main activity below it. If android needs more memory it will destroy the main activity, leaving the floating activity visible with a blank screen behind it?
I'm guessing that the floating activity is still at the top of the stack. What happened to the main activity in the stack? Does android get rid of it from the stack and once the main activity needs to start up it will recreate it and put it back into that stack?
Thanks for your help!