Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  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. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement