When an activity becomes interactive (in the foreground), which callback has just run?

  1. onResume()
  2. onStart()
  3. onPause()
  4. onStop()
Answer

A) onResume()

onResume() is called when the activity starts interacting with the user.

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