~/talk

Background Work in Android: Strategies and Best Practices

Talkat Android Worldwide July 2024 · on Tuesday, 2024-07-30· [android]
links:none on file
slides:none on file

Covers concrete rules and APIs: Services, Bound services, foreground service must call startForeground within 5s, short services must finish in 3 minutes, broadcast receivers must return within 10s. Recommends WorkManager for deferred work but notes its limits — minimum 15 minutes for periodic tasks, quota types (daily execution time, rate limits, and 5 concurrent per app), and standby buckets; shows patterns (music player: foreground+bound, location sharing: foreground with fused API), testing via ADB standby bucket and using expedited or foreground integration when needed.

AI-written summary · about

  1. 0:00Background work in Android
  2. 1:07Background work APIs
  3. 3:21Android Service component
  4. 6:20Bound Service IPC
  5. 10:40Foreground Service types
  6. 17:27Alternatives to Foreground Service
  7. 19:35WorkManager for battery tasks
  8. 23:08WorkManager quotas and buckets
  9. 26:42Choosing the right API
  10. 31:23Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.