posted 8 years ago
When you launch a new Intent() that resolves to an Activity, the new Activity is launched and brought in front (and your existing Activity is pushed behind). To paraphrase, a new Activity is created, started,displayed and pushed on the History stack. When you press the back button the current Activity is "pop"ed from the Stack and removed from display. This will bring your initial,earlier activity to the front.
If you don't want your calling activity to remain on the stack, you should call finish() after launching the intent that resolves to a new Activity.
Take some time to read the following article:
Activities and Tasks
If you don't want your calling activity to remain on the stack, you should call finish() after launching the intent that resolves to a new Activity.
Take some time to read the following article:
Activities and Tasks
[List of FAQs] | [Android FAQ] | [Samuh Varta]
