Firebase Doubt

0

How do I save the Excerpt from Log.e in the firebase? or instead of logging to a save on firebase?

In case this code takes the number of childs in the firebase and shows in the log, I already tried and could not get this result. If you can help me thank you:)

 mDatabaseLike.addValueEventListener(new ValueEventListener() {

            @Override
            public void onDataChange(DataSnapshot dataSnapshot) {



                for (DataSnapshot snap: dataSnapshot.getChildren()) {
                    Log.e(String.valueOf(snap.child(currentUserId).toString()),snap.getChildrenCount() + "");


                }


                if (mProcessLike) {


                    if (dataSnapshot.child(currentUserId).hasChild(mAuth.getCurrentUser().getUid())) {

                        mDatabaseLike.child(currentUserId).child(mAuth.getCurrentUser().getUid()).removeValue();
                        mProcessLike = false;

                    } else {
                        mDatabaseLike.child(currentUserId).child(mAuth.getCurrentUser().getUid()).setValue(mPost_key);
                        mProcessLike = false;


                    }
                }
            }

Sothisisinthelog:

    
asked by anonymous 13.02.2017 / 19:50

0 answers