Save Kotlin data class object into Firebase Database

Опубликовано: 21 Март 2026
на канале: Brandan Jones
2,173
31

Starting with a Jetpack Compose activity that we created in a previous video, a Kotlin data class named Specimen, and a Firebase instance that we've configured in our app, in this video I create an object of the Specimen type and store it into the Firebase database. I demonstrate this real time in the emulator, where I press a Save button and we can see Firebase update with new data. I also show how to create a Firebase Database for the first time, and initialize it with a collection.

All source code is freely available in GitHub: https://github.com/discospiff/MyPlant...
This video is part of a playlist on creating Android apps with Jetpack Compose, which is avialable here:    • Create an Android app with Jetpack Compose