Firebase & Jetpack: Fits like a Glove
summary
Shows concrete glue code that wires Cloud Firestore and Realtime Database to Android Jetpack using LiveData & ViewModel plus a repository layer. Provides a working stock‑tracker sample and a GitHub repo that swaps backends, persists locally, and surfaces errors via a DataOrException wrapper. Demonstrates snapshot listeners, lifecycle‑scoped observers, WorkManager for background sync, Cloud Functions for server triggers, and notes query→RecyclerView inefficiency still being improved.
AI-written summary · about
chapters (9)
- 0:00Start
- 4:47Handle stock price changes from a document in Firestore
- 7:24LiveData is aware of the Android Activity lifecycle
- 7:58Implement LiveData with Firestore document updates
- 9:41Two problems to resolve
- 11:40Implement a View Model that yields a LiveData
- 13:39Use View Model and Live Data in an activity
- 15:37What about errors?
- 16:50Lots more in the repo
related talks
50mFirebase and Android Jetpack: Fit Like a Glove
50mFirebase and Android Jetpack: fit like a glove
01h 13mAccelerating Android Development with Google Jetpack
39mAndroid Architecture Components: fit like a glove
47mArchitecting your Android app with Jetpack
17mAssembling your Jetpack
01h 06mBuilding a books app with Jetpack Compose and Firebase
18mRescuing Old Code with JetPack
