DEV Community

loading...

Cloud Firestore Android example – CRUD Operations with RecyclerView

loizenai profile image loizenai ・2 min read

https://grokonez.com/android/cloud-firestore-android-example-crud-operations-with-recyclerview

Cloud Firestore Android example – CRUD Operations with RecyclerView

Cloud Firestore helps us store data in the cloud. It supports offline mode so our app will work fine (write, read, listen to, and query data) whether device has internet connection or not, it automatically fetches changes from our database to Firebase Server. We can structure data in our ways to improve querying and fetching capabilities. This tutorial shows you an Android app that can do Firestore CRUD Operations with RecyclerView.

Related Post: Cloud Firestore Android example – CRUD Operations with FirebaseUI FirestoreRecyclerAdapter

I. Technologies

  • Android Studio 3
  • Firebase Firestore 11.8.0

    II. Overview

    1. Goal

    We will build an Android App that supports showing, inserting, editing, deleting Notes from/to Cloud Firestore Database with RecyclerView:

cloud-firestore-crud-demo-show-notes

Firebase Console for Firestore will be like:

cloud-firestore-crud-demo-console-show-notes

2. Cloud Firestore

2.1 Add Firestore to Android App

cloud-firestore-console-add-project

  • When your app is created on Firebase Console, you will need to register Android Project. Now fill project package name to register your app:

cloud-firestore-console-add-firebase-android

  • Download google-service.json config file and follow instructions:

cloud-firestore-console-add-firebase-android-json

  • Add Service plugin for Gradle:

cloud-firestore-console-add-firebase-gradle

https://grokonez.com/android/cloud-firestore-android-example-crud-operations-with-recyclerview

Cloud Firestore Android example – CRUD Operations with RecyclerView

Discussion (0)

Forem Open with the Forem app