I am having trouble finding any information using the documentation on firebase and google on how to get all the data when the application starts.
Suppose I want to get all of the following data when an application starts without any event. and store in an ArrayList. Say ArrayList<Quote> , and the 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 an onDataChange () method, but the application does not change any data. How to capture all data and save in ArrayList<Quote> which I can pass to user adapter.
Isuru source share