Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Read from the database
- mFirebaseDatabase.getReference("airvisual-e9c40").orderByChild("Time").equalTo(time).addListenerForSingleValueEvent(
- new ValueEventListener() {
- @Override
- public void onDataChange(DataSnapshot dataSnapshot) {
- for (DataSnapshot data : dataSnapshot.getChildren()) {
- // here the user will have the specified email only
- Toast.makeText(getApplicationContext(), "Done", Toast.LENGTH_LONG).show();
- }
- }
- @Override
- public void onCancelled(@NonNull DatabaseError databaseError) {
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement