Firebase realtime database in android

less than 1 minute read

How to apply firebase realtime database to android

  1. Create a new project and connect to APP in firebase console
  2. Download google-services.json file in firebase console
  3. Add google-services.json to Android project
  4. Modify in Android Studio
  5. Add your code in Android Studio
private DatabaseReference mDatabase;// ...
mDatabase = FirebaseDatabase.getInstance().getReference();

Read and write to firebase realtime database

Realtime database rule




Leave a comment