I am trying to perform a query which will search for all the data under codes child, and if there is a positive result, I would also like to know the child name which that value is in.
Button bt = (Button)findViewById(R.id.button);
bt.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
EditText input = (EditText) findViewById(R.id.editText);
String string = input.getText().toString();
Firebase rootRef = new Firebase("https://akiba-c9600.firebaseio.com/codes");
Query queryRef = rootRef.orderByKey().equalTo(String.valueOf(input));
}
});
For example if I am querying for HUIYIU I would like to know that it is under the a 20mg child. How do I achieve this??