Search code examples
androidandroid-activityhistorylifecycleactivity-stack

Is it normal for a fatal exception not to kill my entire Android Application?


I'm a little concerned that if I encounter an exception in one of my activities in my application the force close dialog seems to bring me back to a previous activity in the application history/stack instead of killing the whole application. Is this normal? I'm concerned that my application may be running multiple versions of itself somehow.

By intentionalally "breaking" my code I've figured this much out:

These are my activities opened consecutively after each other A>B>C>D>E

Breaking activity A causes me to force close back to the phone home screen Ditto for activity B Breaking D seems to bring me back to activity B when it is force closed Breaking E seems to bring me back to activity C when it is force closed

What's going on? I've checked all my intents to make sure I'm not opening them twice


Solution

  • Thats normal :-) You must kill base Activity to stop all app.