I just need to know this. Since calling the finish() in the activity takes you to the previous activity, when you press the Back button it actually finishes the current activity and takes you to the previous activity?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When the user presses the back button on the current activity it is popped from the activity stack and destroyed and the previous activity is resumed with its re-stored state.
Read Tasks and Backstack for a more detailed information. It is essential that you understand this concept thoroughly.
Hope this helps!!