Ein Service ist eine Android-Komponente zum Ausführen von Operationen ohne UI — typischerweise längere Arbeiten im Hintergrund. Es gibt verschiedene Typen (Foreground, Background, Bound), die jeweils für unterschiedliche Anforderungen geeignet sind, wobei modernes Android in vielen Fällen WorkManager bevorzugt.
Was ein Service ist
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!)
