Resources
1Install
npx skillscat add hoangnguyen0403/agent-skills-standard/android-background-work Install via the SkillsCat registry.
SKILL.md
Android Background Work Standards
Priority: P1
Implementation Guidelines
WorkManager
- CoroutineWorker: Use for all background tasks.
- Constraints: Be explicit (Require Network, Charging).
- Hilt: Use
@HiltWorkerfor DI integration.
Foreground Services
- Only When Necessary: Use generating visible notifications only for tasks the user is actively aware of (Playback, Calls, Active Navigation). Otherwise use WorkManager.
Anti-Patterns
- IntentService:
**Deprecated**: Use WorkManager. - Short Jobs:
**No short background jobs**: Use standard Coroutines in VM.