~/talk

A guide to using foreground services and background work in Android 14

Talkat Droidcon London 2023 · 2023-10-26..10-27· [android]
links:none on file
slides:none on file

Android 14 requires apps targeting it to declare mandatory foreground service types in the manifest or the app crashes at runtime; libraries must include them too. New types include short service 3 minutes (finish critical work without extra permissions) and use-case types like health and remote messaging; Play Console will soon require justification, a description, and a demo video. Use WorkManager with an expedited flag for deferred or retryable work, test the restricted standby bucket with ADB, and prefer new alternatives (user-initiated transfer, companion device manager) over foreground services when possible.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 2:32Background work basics
  3. 8:30Foreground services explained
  4. 11:59Android 14 foreground service types
  5. 15:09Declaring service types in manifest
  6. 18:46WorkManager setForeground API
  7. 20:54Play Console declarations
  8. 21:58Alternative APIs overview
  9. 24:06Choosing the right API
  10. 28:40User-initiated action scenarios
  11. 31:08Interactive quiz
  12. 33:57Future of background APIs
  13. 35:21Recap and closing
~/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.