My structure
So I have an app in which users upload posts in my adapter. I can retrieve the post description and the post picture, but when I try to retriev
The code below goes inside onBindviewhoder() under this line:
String user_id = . . .. . . .
I guess its the way you refer to your data and the way you attach the listener. Try to initialize the database ref like this:
DatabaseReference firebaseDatabase= FirebaseDatabase.getInstance().getReference().child("Users").child(user_id);
and now try to listen like this:
firebaseDatabase.addValueEventListener(new ValueEvent....{
onDataChange(.....){
//your same code
}
})