Hello, someone could help me to check that I am doing wrong in my query, what happens is that I can not recover the type in firebase of each question that I select in the expandable ListView Please and thank you ..
myRef.child("CuestionarioAll").child(CuestionarioGanaderiaActivity.cues).child(listDataHeader.get(groupPosition)).child(listDataChild.get(listDataHeader.get(groupPosition)).get(childPosition)).addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
for (DataSnapshot objSnapshot:dataSnapshot.getChildren()){
ResInformation p = objSnapshot.getValue(ResInformation.class);
String prueba = p.getTipo();
String convertedStringObject = prueba.toString();
//myRef.setValue(p.tipo);
Toast.makeText(CuestionarioS.this, ""+convertedStringObject, Toast.LENGTH_SHORT).show();
}
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});