Un Service è un componente Android per eseguire operazioni senza UI — tipicamente lavoro di lunga durata in background. Esistono diversi tipi (foreground, background, bound), ognuno adatto a esigenze diverse, anche se Android moderno favorisce WorkManager per molti casi.
Cos'è 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!)
