Best practices for running background work on Android
summary
Android 13 standardizes app restriction levels (Unrestricted, Optimized with the four Android 9 standby packages Active/WorkingSet/Frequent/Rare, Restricted, Background Restricted) and adds a foreground service Task Manager with a Stop button. JobScheduler gains a priority API, better thermal response, and setMinimumNetworkChunkBytes to avoid repeated transfers. High-priority FCM quota decouples from standby buckets and notification permission hides notifications if not granted. Jetpack tools recommended: WorkManager (including setExpedited) and CameraX for efficiency. setMinimumNetworkChunkBytes and foreground service Task Manager are demonstrated.
AI-written summary · about
chapters (9)
- 0:00Android battery goals
- 2:36Background restrictions
- 6:24Job scheduler improvements
- 10:49Notification controls
- 13:09FCM priority updates
- 15:08App etiquette philosophy
- 17:15Efficiency techniques
- 22:28Active app optimizations
- 26:09Future android direction
related talks
39mModern best practices for background task execution
50mWTF with Android Background Restrictions
37mA guide to using foreground services and background work in Android 14
11mEffective background tasks on Android
36mBackground Work in Android: Strategies and Best Practices
33mIs my application taking up too much power?
21mImproving battery life with restrictions
31mAndroid Jetpack: Easy background processing with WorkManager
