Firebase and Android Jetpack: fit like a glove
summary
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
chapters (25)
- 0:00Introduction
- 3:31Firebase and Jetpack
- 5:19Firebase Store
- 9:00Live Data
- 11:13Life Cycle Changes
- 14:50Problems with Live Data
- 16:08ViewModel
- 20:30Architecture
- 24:07Dealing with Errors
- 25:47Querying
- 28:28Data Exception
- 30:00Type Alias
- 32:09Mediator Live Data
- 33:31RecyclerView List Adapter
- 34:47Item Callback
- 36:03Query Item
- 37:36Recycler View
- 38:15Live Query Results
- 39:51Background Sync
- 40:10Offline Data
- 41:16Data Sync
- 42:22Periodic Work
- 44:42Server Push
- 46:29Syncing the Ticker
- 48:54Summary
related talks
50mFirebase and Android Jetpack: Fit Like a Glove
19mFirebase & Jetpack: Fits like a Glove
39mAndroid Architecture Components: fit like a glove
45mFirebase and Android, a real-time match synced in heaven
01h 13mAccelerating Android Development with Google Jetpack
01h 06mBuilding a books app with Jetpack Compose and Firebase
47mArchitecting your Android app with Jetpack
17mAssembling your Jetpack
