android-background-work

Installation
SKILL.md

Android Background Work Standards

Priority: P1 (HIGH)

Implementation Guidelines

WorkManager

  • CoroutineWorker: Use for all background tasks.
  • Constraints: explicit (Require Network, Charging).
  • Hilt: Use @HiltWorker for DI integration. Inject dependencies via @AssistedInject constructor; bind with HiltWorkerFactory in WorkManager configuration.

Foreground Services

  • Only When Necessary: Use generating visible notifications only for tasks user actively aware of (Playback, Calls, Active Navigation). Otherwise use WorkManager.

Anti-Patterns

Installs
3
GitHub Stars
570
First Seen
Sep 10, 2026