FirebaseUI Firestore RecyclerView Part 3 - FIRESTORE RECYCLER ADAPTER - Android Studio Tutorial
Why Stack Overflow recommends it
Stack Overflow users cite it as the tutorial they followed for wiring a FirestoreRecyclerAdapter into a RecyclerView, usually when their own version of that code breaks.
Recommended by 1 people across 1 different months, 2019 to 2020.
What it is
Part 3 of Coding in Flow's FirebaseUI Firestore series for Android Studio. It builds a FirestoreRecyclerAdapter with a ViewHolder and FirestoreRecyclerOptions, orders the query with orderBy, and starts and stops listening in the activity lifecycle to show Firestore documents in a RecyclerView.
What people said
Recommends Kaiser · 2019-11 · Stack Overflow · on “Using Firestore UI to retrieve data from Firestore and display it in RecyclerView is not working for API 24+”
In my app there is an activity that when it opens it should display data in a RecyclerView. The data is stored in a collection in Firestore but unfortunately it is only working for API 21, 22 and 23, everything above is not displaying the data (see screenshots). Also sometimes it is not showing the data on the first time the user opens the activity, only when he opens it a second time or logs out and in again (in API 21). Is this something that is known or is there something with my code? Or is there a better way to display the data of a collection in a RecyclerView? I also noticed a strange behavior : When I add an EditText to the layout without doing anything with it in the activity, when
Cites MUHAMAD NUR FIKRY BIN MARJAMAL · 2019-12 · Stack Overflow · on “java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/firestore/QueryListenOptions;”
I did follow Youtube tutorial on how to retrieve data from Firebase Cloud Firestore at part 3. Here is the link Part3 [this video] . I changed a bit of code, from main to go to the class that will print the result of data I retrieve from Firebase, but suddenly when i try clicked button to go to the next activity it shows this error. 2019-12-01 20:18:34.015 5780-5780/com.example.testingchat E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.testingchat, PID: 5780 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/firestore/QueryListenOptions; at com.firebase.ui.firestore.FirestoreRecyclerOptions$Builder.setQuery(FirestoreRecyclerOptions.java:108) at com.example.te
Cites Kunal Bagam · 2020-11 · Stack Overflow · on “Retrieve Firestore Data into Recylerview not working”
I basically want to display the data from firestore when the user selects an item from the second spinner and display it in a CardView inside RedcyclerView. The code doesnt throw any errors but doesn't display the data either i.e nothing happens when an item is selected from the second spinner. My Firestore Database schema is something like: Tests > 7th (standard/grade) > Physics (subject) > QuestionNum > 1 > Document Auto-ID > qName,op1,op2,op3,op4,cop (fields). This is QuestionListFragment.java where I want to display data public class QuestionListFragment extends Fragment { // TODO: Rename parameter arguments, choose names that match // the fragment initialization parameters, e.g. ARG_ITE