How to kill an Android activity when leaving it so that it cannot be accessed from the back button?
Posted
by johnrock
on Stack Overflow
See other posts from Stack Overflow
or by johnrock
Published on 2010-03-31T02:36:54Z
Indexed on
2010/03/31
2:43 UTC
Read the original article
Hit count: 433
android
In an given Android activity, I would like to start a new activity for the user at some point. Once they leave the first activity and arrive at the second, the first activity is stale and I want to remove it completely so it can not be accessed again from the back button.
How is the best way to accomplish this? How do I kill or destroy this activity immediately after the user has launched the new activity?
© Stack Overflow or respective owner