Write new Data in Android Firebase Database
<p>I am using Firebase Database in an Android application, and  everytime a user is registred I store some values in the database for this purpose I am doing what follows: </p>

<pre><code>database =  FirebaseDatabase.getInstance();
                            DatabaseReference mRef =  database.getReference().child("Users").push();
                            FirebaseUser user =  mAuth.getCurrentUser();
                            String userId = user.getUid();
                            mRef.child("User").child("age").setValue(selectedAge);
                            mRef.child("User").child("gender").setValue(finalGender);
                            mRef.child("User").child("userId").setValue(userId);
                            mRef.child("User").child("username").setValue(username);
</code></pre>

<p>but when I go to my firebase console I see that a kind of id is automaticaly generated which I do not need since as you can see in the image I set my own id.</p>

<p><a href="https://i.stack.imgur.com/jwK3Z.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jwK3Z.jpg" alt="enter image description here"></a></p>

<p>Is there a way to avoid this, and create nodes like the second User node in the image ??</p>

<p><strong>NOTE</strong>: the second user node i added it manualy</p>