0

I am new Firebase developer. I am develop an android app that uses firebase database. I want to count child nodes in father node, but I don't know how to do. enter image description here

Do you have any idea to solve it ?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Zappy.Mans
  • 551
  • 1
  • 7
  • 19
  • You'll have to download them all and call [`DataSnapshot.getChildrenCount()`](https://firebase.google.com/docs/reference/android/com/google/firebase/database/DataSnapshot.html#getChildrenCount()) or implement your own counter. See http://stackoverflow.com/questions/38443421/how-to-get-size-of-an-element-list-in-firebase-without-get-it-all/38444523#38444523 – Frank van Puffelen Jul 21 '16 at 03:04
  • I got it. Thank you. – Zappy.Mans Jul 21 '16 at 03:11

0 Answers0