SHARE
TWEET

Untitled

a guest Jun 25th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Read from the database
  2.  
  3.     mFirebaseDatabase.getReference("airvisual-e9c40").orderByChild("Time").equalTo(time).addListenerForSingleValueEvent(
  4.             new ValueEventListener() {
  5.  
  6.                 @Override
  7.                 public void onDataChange(DataSnapshot dataSnapshot) {
  8.  
  9.                     for (DataSnapshot data : dataSnapshot.getChildren()) {
  10.                         // here the user will have the specified email only
  11.                         Toast.makeText(getApplicationContext(), "Done", Toast.LENGTH_LONG).show();
  12.                     }
  13.  
  14.                 }
  15.  
  16.                 @Override
  17.                 public void onCancelled(@NonNull DatabaseError databaseError) {
  18.  
  19.                 }
  20.  
  21.             });
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top