~/talk

Firebase and Android Jetpack: fit like a glove

Talkat Windcity DevFest 2019 Β· on Friday, 2019-02-01Β· [android]
slides:none on file

A working demo stock-tracker ties Firebase (Firestore and Realtime DB) to Android Jetpack using LiveData subclass wrapping a Firestore snapshot listener, a ViewModel that survives configuration changes and a repository layer so activities stay tiny. Queries return live lists transformed via MediatorLiveData into RecyclerView backed by ListAdapter + DiffUtil to avoid jank. Background sync uses FCM topics to trigger WorkManager one-off syncs. Source code is available and the live demo runs though the uploaded APK isn’t published.

AI-written summary Β· about

  1. 0:00Introduction
  2. 3:31Firebase and Jetpack
  3. 5:19Firebase Store
  4. 9:00Live Data
  5. 11:13Life Cycle Changes
  6. 14:50Problems with Live Data
  7. 16:08ViewModel
  8. 20:30Architecture
  9. 24:07Dealing with Errors
  10. 25:47Querying
  11. 28:28Data Exception
  12. 30:00Type Alias
  13. 32:09Mediator Live Data
  14. 33:31RecyclerView List Adapter
  15. 34:47Item Callback
  16. 36:03Query Item
  17. 37:36Recycler View
  18. 38:15Live Query Results
  19. 39:51Background Sync
  20. 40:10Offline Data
  21. 41:16Data Sync
  22. 42:22Periodic Work
  23. 44:42Server Push
  24. 46:29Syncing the Ticker
  25. 48:54Summary
~/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.