In which method should setContentView() normally be called?

  1. onDestroy()
  2. onResume()
  3. onCreate()
  4. onPause()
Answer

C) onCreate()

The layout is set once in onCreate().

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