What is reference in Firebase?

From the point of view of an Android app, a Firebase database is represented by an instance of the FirebaseDatabase class, a reference to which is obtained via a call to the getInstance() method of the class , for example: FirebaseDatabase database = FirebaseDatabase.

Read more

How do I create a reference in Firebase?

References are lightweight, so you can create as many as you need, and they are also reusable for multiple operations. To create a reference, get an instance of the Storage service using getStorage() then call ref() with the service as an argument . This reference points to the root of your Cloud Storage bucket.

Read more