Posts by Cas • 136 points
2 posts
-
1
votes1
answer3704
viewsA: Recovering Data on Firebase Android with Class
Call dataSnapshot.getValue()to access the data. And it is good practice to check whetherdataSnapshop.exists() before calling. If it doesn’t exist, it’s because you’re accessing a child empty.…
-
1
votes2
answers601
viewsA: Firebase - Child inside another Child
You can use ref.child() on a nonexistent Child and give a ref.push() to create. So just do it: DatabaseReference empresaRef = ref.child("Empresa"); To access the headquarters: DatabaseReference…