Advertisement
Gnidus_Totalus

Untitled

Jan 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1.         for(i=1; i<=6;i++){
  2.             places = place+i;
  3.             mRef.child(place+i).addListenerForSingleValueEvent(new ValueEventListener() {
  4.                 @Override
  5.                 public void onDataChange(DataSnapshot dataSnapshot) {
  6.  
  7.  
  8.                     if (dataSnapshot.child(address).getKey().equals(address)) {
  9.                         Log.d(TAG,"key: "+dataSnapshot.getKey()+"i: "+i);
  10.  
  11.  
  12.                     }
  13.  
  14.                 }
  15.  
  16.                 @Override
  17.                 public void onCancelled(DatabaseError databaseError) {
  18.  
  19.                 }
  20.             });
  21.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement