How can I go back to the previous activity in Android?

1146400 pts.
Tags:
Android
Mobile
In Android, I need to know if it's actually possible to back to a previous activity. Would I need some type of code or is it stored in the activity stack?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Yes, they are stored in the back stack.  You should not need to keep track of it.

To go back to the activity from where you called the current one, calling the finish()  method should be enough.  If want to do it from the calling activity, you can call the finishActivity() method.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: