Hello, I have a database (Firebase), and I would like to have the count of the values. In the image below, we have 3 values :
- Colorations
- Extensions
- Lissage
So how can i get the exact count of "3" ? please
Here is my code:
- Colorations
- Extensions
- Lissage
So how can i get the exact count of "3" ? please
Here is my code:
Java:
mDatabaseReference.child("Auto-Entrepreneurs").child("NANA").child("Prestations").addListenerForSingleValueEvent(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
// Get number of data (3 datas : Colorations, Extensions & Lissage)
Toast.makeText(ProfileAutoEntrepreneur.this, "How much : ", Toast.LENGTH_SHORT).show();
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});