HoangNguyen0403

Android Background Work

Standards for WorkManager and Background Processing

HoangNguyen0403 501 148 Updated 4mo ago

Resources

1
GitHub

Install

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 @HiltWorker for 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.

References