Is there a way I can force the user to go back to the previous Activity? I'd like to kill my current Activity make the user "go back" possible?
Asked
Active
Viewed 1.1k times
3 Answers
12
Call finish in your Activity : http://d.android.com/reference/android/app/Activity.html#finish()
And to make sure you started your activity correctly to have the state in the Activity Stack, check the documentation there : http://d.android.com/guide/topics/fundamentals/tasks-and-back-stack.html
Matthieu
- 15,687
- 10
- 58
- 85
6
Call finish()
From the link: Call this when your activity is done and should be closed. The ActivityResult is propagated back to whoever launched you via onActivityResult().
nicholas.hauschild
- 41,623
- 9
- 123
- 118