Which callback is called first when an activity is created?

  1. onCreate()
  2. onStart()
  3. onResume()
  4. onRestart()
Answer

A) onCreate()

onCreate() is the first lifecycle method.

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