June 2018
Beginner to intermediate
394 pages
9h 2m
English
Lists are compelling data structures and they help in numerous use cases. Firebase has excellent support for HashMap and lists. Users can append the data according to the unique key from Firebase, or you can create your logic to create a unique identifier. Using the push() method a user can insert the data, and there are many ways to filter and match the data pushed. Let's see how the push() method helps in creating a list. As usual first grab the reference to the database and then using the push() method get the unique key. Using the push() method we can add a new child:
// Write a message to the databasemDatabase = FirebaseDatabase.getInstance();mDbRef = mDatabase.getReference("Donor/Name");//Setting firebase ...
Read now
Unlock full access