I want to search a condition if user says MSCS,then Search should check -> conditi
Sounds that you are looking for something like the following.
mDatabase.orderByChild("MSCS").equalTo(1).addListenerForSingleValueEvent(
new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
//data will be available on dataSnapshot.getValue();
}
@Override
public void onCancelled(DatabaseError databaseError) {
Log.w(TAG, "getUser:onCancelled", databaseError.toException());
}
});
Let me know if this works for you :)
Firebase equalTo(String value) method only returns value if it matches exactly. It is not like SQL LIKE query