HoangNguyen0403

Android Background Work

Standards for WorkManager and Background Processing

HoangNguyen0403 582 165 Actualitzat fa 9 mesos

Recursos

1
GitHub

Instal·la

npx skillscat add hoangnguyen0403/agent-skills-standard/android-background-work

Instal·la des del registre de SkillsCat.

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