How to retrieve value from firebase without getting the unique key

I am trying to retrieve an url from Firebase in Android. However, my problem is that I can't retrieve the url without also getting the unique key of the child.

The value I am trying to retrieve is the following:

Down below is the code I use to retrieve the data from firebase.

final FirebaseDatabase database = FirebaseDatabase.getInstance();

myRef = database.getReference().child("LoadItems");

myRef.addValueEventListener(new ValueEventListener() {


public void onDataChange(DataSnapshot dataSnapshot) {

for(DataSnapshot child : dataSnapshot.getChildren() ){

String key;

key = child.getKey();

Log.d(TAG, "onDataChange: " + key);

Log.d(TAG, "onDataChange: " + child.getValue());




public void onCancelled(DatabaseError databaseError) { }


So what I am trying to get is...

Read More »

By: StackOverFlow - Friday, 9 November

Related Posts