• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Firebase data

Ratchoss

Newbie
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
upload_2017-11-20_17-13-22.png



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) {

    }
});
 
Back
Top Bottom