Service on Android-komponentti operaatioiden suorittamiseen ilman käyttöliittymää — tyypillisesti pidempikestoisille taustatöille. On olemassa eri tyyppejä (foreground, background, bound), joista jokainen sopii erilaisiin tarpeisiin, vaikka moderni Android suosii useissa tapauksissa WorkManageria.
Mitä Service on
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!)
