Which method closes the current activity and returns to the previous one?

  1. finish()
  2. exit()
  3. close()
  4. stop()
Answer

A) finish()

finish() destroys the activity and pops it from the back stack.

Computer Science MCQ · More Lab: Multiple Activities and Navigation MCQs · Practise