When the user presses Home, the activity's callbacks are:

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

D) onPause() then onStop()

The activity becomes invisible: onPause() then onStop().

Computer Science MCQ · More Android OS: Architecture, Framework and Application Development MCQs · Practise