~/talk

Guide to Foreground Services

Talkat droidcon Berlin 2024 · 2024-07-03..07-05· [android]
slides:none on file

Android 14 requires a mandatory foreground service type declared in the manifest and passed to startForeground or setForeground, or the app gets security or invalid type exceptions; startForeground must run within 10 seconds or the system throws a did not start in time error. Short service type limits runs to about 3 minutes, Android 15 adds media processing with a 6 hour per 24h limit, and Play Store updates must include a Play Console declaration with justification and a demo video.

AI-written summary · about

  1. 0:00Introduction
  2. 0:46What is a foreground service
  3. 2:08When to choose it
  4. 4:17Evolution of restrictions
  5. 5:41Foreground service types
  6. 7:07Declare types in manifest
  7. 8:10Play Console requirements
  8. 9:34Location foreground service
  9. 10:14Connected device service
  10. 11:19Data sync alternatives
  11. 12:23Media processing service
  12. 13:06Special service types
  13. 14:56Notification rules
  14. 16:21Create manually
  15. 19:07Starting a foreground service with startForeground
  16. 21:11Common errors
  17. 23:16Runtime permissions
  18. 24:39Stopping the service
  19. 25:43WorkManager for long tasks
  20. 26:49Long-running worker setup
  21. 29:23WorkManager considerations
  22. 31:29Background restrictions
  23. 34:24Android 14 changes
  24. 35:49Recommendations
  25. 36:12Demo and sample
~/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.