When the user returns to MainActivity from SecondActivity, MainActivity calls:

  1. onCreate() only
  2. onPause()
  3. onDestroy()
  4. onRestart(), onStart(), onResume()
Answer

D) onRestart(), onStart(), onResume()

A stopped activity restarts when it becomes visible again.

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