Multiple choice

Which of the following is not a difference between Android activity lifecycle and Android service lifecycle?

  1. Android starts service and calls its onCreate method followed by the onStart method.

  2. onResume, onPause and onStop are not needed.

  3. As with an activity, the onDestroy method is called when the service is about to be terminated.

  4. onResume of activity life cycle is equivalent to onBind method of service.

  5. None of these

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

If a client needs a persistent connection to a service, it can call the Context.bind Service method, while onResume is called right after onStart if your activity is the foreground activity on the screen.