Multiple choice technology platforms and products

Between ______ & ________methods, you can maintain resources that are needed to show the activity to the user.

  1. onResume(), onStop()

  2. onStart(), onStop()

  3. onStart(), onDestroy()

  4. onResume(), onDestroy()

  5. None of above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Android activity lifecycle, onStart() indicates when the activity becomes visible to the user, and onStop() is called when it's no longer visible. Resources needed to display the activity to the user (such as views and UI elements) should be initialized in onStart() and released in onStop(). onResume() and onPause() are for foreground/interactive state, not visibility.