Skip to content Skip to sidebar Skip to footer

How To Get Keys And Values Using Firebaselistadapter

this code get the values and set them in listview i want to get keys to use them also, please see the image to view the database example FirebaseListAdapter firebaseListAdapter = n

Solution 1:

You can get the DatabaseReference for the current item by calling getRef(position):

protected void populateView(View view, String base64Image, int position) {
    DatabaseReference itemRef = getRef(position);
    String itemKey = itemRef.getKey();
    ...

Post a Comment for "How To Get Keys And Values Using Firebaselistadapter"