Why is secondary activity being destroyed when going back to main activity? [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . When going back to activity A (main activity) the activity B is being destroyed. Why is that happening? The example program I'm trying to understand is here: http://developer.android.com/shareables/training/ActivityLifecycle.zip 回答1: Here's a representation of how each new activity in a task adds an item to the