How to array listing index from Firebase on Android [on hold]

48
January 13, 2018, at 09:39 AM
0 --> David
1 --> Alice
2 --> Jayden
3 --> Nicole
4 --> David

this sequence shows 0 and 4 David's records. I want to find David's records and find index values.

    find --> David  
Situated shows list --> data to recyclerview listing

i want to do My Firebase ;

  "Node" : {
    "-L1pFRQg8anT4_-4V60B" : {
    "name" :"David"
     "note" : " firs note"
    },  "-L1pFRQg8anT4_-4V2342" : {
    "name" :"Alice"
     "note" :"note values"
    },  "-L1pFRQg8anT4_-65656" : {
    "name" :"Jayden"
     "note" :"note values"
    },  "-L1pFRQg8anT4_-sajkfhsaj" : {
    "name" :"Nicole"
     "note" :"note values"
    },  "-L1pFRQg8anT4_-jwquh24" : {
    "name" :"David"
     "note" :"second note"
    },

I know how to read and print data with Firebase. I know how to use FirebaseRecyclerview. But I have to find out in what order David is in the order of number. So if I called "David", it would be easy to show Davids in Recyclerview. I can do that. It is difficult to print the rank value of "David" among other data. etc 0-4

     Query query = FirebaseDatabase.getInstance ()
             .getreferen by ()
             .child ( "node")
             .orderbychild ( "name");

When I sort by name, I want to get "David" in position number and print it as "note" data and "position number".

i want to do index values

READ ALSO
Kotlin to Java (Library Help)

Kotlin to Java (Library Help)

I am using this library to generate gradients: https://githubcom/revely-inc/co

82
How to show SnackBar before another page destination loaded?

How to show SnackBar before another page destination loaded?

I'm really happy if I can show the snackbar before the destination page did loadMy current snackbar code here:

43
What should I specify as --tag parameter in Android SDK's avdmanager?

What should I specify as --tag parameter in Android SDK's avdmanager?

As GUI tools are gone in recent versions of Android SDK and I don't want to use their Android Studio IDE, I'm trying to create virtual device for emulator

43
Notification that apears one a week [on hold]

Notification that apears one a week [on hold]

Please help me I want that in my application will be a notification(notification with a text) that will apear one a week even if the aplication is closedI know that I need a class that will extand BroadCastReceiver

51