I have trouble finding any information using firebase documentation and google on how to retrieve all data on app start.
Let's assume, I want to get all the following data on app start without any event. and store in a ArrayList. Let's say ArrayList<Quote>
and quote has three fields (int id, String text, String author).
[{
"id" : 1,
"text": "There are 1,411 tigers left in India.",
"author": "NULL"
}, {
"id" : 2,
"text": "The Greek for \"left-handed\" also means \"better\".",
"author": "NULL"
}]
According to the documentation there is a method called onDataChange() but, app is not changing any data. How to grab all data and store in ArrayList<Quote>
which I can pass to custom adapter.