Cloud Firestore Basics in Android

How to Get, Add, Edit, and Delete Data in Cloud Firestore, with Real App Examples

Ashton Jones
Firebase Developers
10 min readAug 20, 2020


In this post, I will be demonstrating how to do the basic database operations in Cloud Firestore in an Android App, using a published app I built as a practical example.

You will learn how to implement the core database operations in Cloud Firestore: how to get (read), add (write), edit, and delete data in the database in an Android app.

Note: This article does not cover setting up Cloud Firestore, Firebase Authentication for Android, and documents/collections in Cloud Firestore, which are prerequisites for this tutorial. If you are unfamiliar with these topics, I highly encourage you to read Evana Margain’s article to set up Cloud Firestore, read how to implement FirebaseUI for authentication, and watch this video to learn about documents and collections in Cloud Firestore before returning to this article.

Reply App Background

Reply is an Android app I built from scratch and published to the Google Play Store. I will use this app to provide clear, practical examples of how to implement the core Cloud Firestore operations.

I have the code available on Github and you can download the app on the Google Play Store.

Reply helps you easily create your own custom, pre-defined messages through any platform.

With the app, you create your custom message templates which you can categorize based on the type of message (i.e. personal, social, and business messages). Each tab corresponds to a category.

Once you create your own messages, you can preview, send, edit, and delete them using the main button in the bottom right corner.

Registering and Signing in Users



Ashton Jones
Firebase Developers

Sharing my personal stories and experiences 🌐

Recommended from Medium


See more recommendations