I need to look for the red-highlighted values in the image, but I only know the item in blue.
Itriedthisway:
firebase=ConfiguracaoFirebase.getFirebase().child("tb_contato").child(identificador);
valueEventListener = new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
for (DataSnapshot filho: dataSnapshot.getChildren())
{
Contato contato = filho.getValue(Contato.class);
Log.i("Teste","Teste");
}
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
};
firebase.addListenerForSingleValueEvent(valueEventListener);
Where "identifier" is the blue italic value of the image.