Multiple choice

What is needed to run service?

  1. To add permission in manifest

  2. To register in manifest

  3. Both (1) and (2)

  4. Nothing is required

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

Services must be declared in AndroidManifest.xml within the tag. This registration is mandatory for the Android system to recognize and launch the service, similar to activities and broadcast receivers.