Activity Stack

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Activity Stack

Postby saphiroth » Thu Nov 06, 2008 4:07 pm


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!
Junior Developer
Junior Developer
Posts: 12
Joined: Fri Oct 31, 2008 5:22 pm


Return to General

Who is online

Users browsing this forum: No registered users and 4 guests