Un Service est un composant Android pour effectuer des opérations sans interface utilisateur — généralement du travail long terme en arrière-plan. Il existe différents types (foreground, background, bound), chacun adapté à des besoins différents, bien qu'Android moderne privilégie WorkManager pour de nombreux cas.
Qu'est-ce qu'un Service
A SERVICE runs operations WITHOUT a UI (not tied to a screen):
→ for work that should continue regardless of UI (or independent of any activity)
→ declared in the manifest; runs in the app's process (main thread by default — must
move heavy work off it!)
