-3

enter image description here

How can I retrieve all data from these keys and display it in recycle view. Each key has a value that I want to display.

  • 2
    What have you done so far? – whatthefish May 01 '18 at 18:09
  • stackoverflow is not a site to provide direct solution, provide code for what you tried and where you are stuck – Sarasa Gunawardhana May 01 '18 at 19:40
  • **[This](https://stackoverflow.com/questions/49383687/how-can-i-retrieve-data-from-firebase-to-my-adapter/49384849)** is how you can retrieve data from a Firebase Realtime database and display it in a `RecyclerView` using `FirebaseRecyclerAdapter`. – Alex Mamo May 02 '18 at 14:41

1 Answers1

0

Simply adding a ValueEventListener to correct child

database.child("user details").addValueEventListener(...

would do it. You might want to consider changing "user details" to one word, eg. "userDetails".

Dambakk
  • 595
  • 4
  • 20
  • If it must be `User details` with a space and it's only for android you can use the @PropertyName(String) to name the variable something different, or just use a Map. – Torewin May 02 '18 at 04:17