Start a Project

Android FireBase Database

Firebase can power your app’s backend, including data storage, user authentication, static hosting, and more. We provide these services so you can focus on creating extraordinary user experiences.

What makes the FireBase powerful.
  • Firebase Realtime Database: synchronized in realtime to every connected client.
  • Firebase Authentication: built-in functionality for authenticating users with email & password, Facebook, Twitter, GitHub, Google, and anonymous auth.

  • Firebase Hosting: Deploy our web app in seconds with production-grade static asset hosting. All of our content is delivered over SSL from there global CDN.

Get Started with Firebase

NOTE: If you are getting a build error complaining about duplicate files you can choose to exclude those files by adding the packagingOptions directive to your build.gradle file:

 

  • Setup Firebase on Android

Reading data from your Firebase database is accomplished by attaching an event listener and handling the resulting events. Assuming we already wrote to myFirebaseRef above, we can retrieve the message value by using the addValueEventListener method:

Once we have a reference to your data, we can write any Boolean, Long, Double, Map<String, Object> or List object to it using setValue():

 

 

Stay Updated!!!

 

 

 

 

Exit mobile version