Firebase and Android Jetpack: Fit Like a Glove
summary
A stock-tracker app demonstrates wiring Firestore and Realtime Database into Android Jetpack using concrete code: a custom Firestore document LiveData that adds/removes snapshot listeners on active/inactive, ViewModel that survives configuration changes and caches LiveData, a Repository interface, and a RecyclerView ListAdapter with DiffUtil to avoid jank. Background sync uses WorkManager + FCM topic sync to schedule per-ticker syncs, Cloud Functions as the backend, and Firebase client-side caching; the sample app and source code run and show live updates.
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 06mBuilding a books app with Jetpack Compose and Firebase
01h 13mAccelerating Android Development with Google Jetpack
47mArchitecting your Android app with Jetpack
17mAssembling your Jetpack
