Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Which Activity lifecycle callback runs when the Activity is created and should inflate the layout?

  1. A onCreate()
  2. B onStart()
  3. C onResume()
  4. D onDestroy()
Answer

onCreate()

onCreate runs once per instance. onResume is where camera, sensors and location updates should start, since the Activity is then interactive.

All Android MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as