SHARE
TWEET

Untitled

a guest Jun 17th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FirebaseFirestore rootRef = FirebaseFirestore.getInstance();
  2.     CollectionReference bulletinRef = rootRef.collection("facultades").document().collection("escuelas");
  3.     bulletinRef.get()
  4.             .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {
  5.         @Override
  6.         public void onComplete(@NonNull Task<QuerySnapshot> task) {
  7.             if (task.isSuccessful()) {
  8.                 for (QueryDocumentSnapshot document : task.getResult()) {
  9.                     Log.d(TAG, document.getString("nombre"));
  10.                 }
  11.             } else {
  12.                 Log.d(TAG, "Error getting documents: ", task.getException());
  13.             }
  14.         }
  15.     });
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