• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Filtering on json

upload_2019-11-2_22-4-5.png

I would like to do a filter on only ht==176, but I cant found reference on it and some of it maybe difference from my coding pattern, anyone can help me on this topic ?

Query query=reff.child("Member").orderByChild("ht").equalTo("176");
query.addListenerForSingleValueEvent(new ValueEventListener() {
@override
public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
String value = (String) dataSnapshot.getValue();
textView_result.setText(editText_name.toString());
}



@override
public void onCancelled(@NonNull DatabaseError databaseError) {

}
});
 

Attachments

  • upload_2019-11-2_22-3-28.png
    upload_2019-11-2_22-3-28.png
    374.8 KB · Views: 94
Back
Top Bottom