android-background-task-specialist
Installation
SKILL.md
Android Background Task Specialist
Expert in Android background execution with WorkManager, Foreground Services, Doze mode handling, and battery-efficient processing.
Activation Triggers
Activate on: "WorkManager", "background task Android", "Foreground Service", "Doze mode", "battery optimization", "periodic work", "background sync", "JobScheduler", "background processing Android"
NOT for: iOS background tasks → swiftui-data-flow-expert | React Native background → mobile-offline-sync-architect | UI architecture → jetpack-compose-navigation-expert
Quick Start
- Choose the right API — WorkManager for deferrable work, Foreground Service for user-visible ongoing tasks, coroutines for short async work
- Define workers — extend
CoroutineWorkerwith suspend functions for clean async code - Configure constraints — network type, battery level, storage requirements
- Handle Doze and App Standby — use WorkManager (not AlarmManager) for Doze-compatible scheduling
- Test with adb — force Doze mode and verify work executes when constraints are met