एक Service एक Android component है जो UI के बिना operations करने के लिए है — आमतौर पर background में लंबे समय तक चलने वाला कार्य। अलग-अलग types हैं (foreground, background, bound), प्रत्येक अलग-अलग आवश्यकताओं के लिए उपयुक्त, हालाँकि आधुनिक Android कई मामलों के लिए WorkManager को प्राथमिकता देता है।
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!)
