ایک Service ایک Android component ہے جو UI کے بغیر operations کو انجام دیتا ہے — عام طور پر background میں طویل مدتی کام۔ مختلف اقسام ہیں (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!)
