Update (not set) Android Firebase child data
<p>Please be patient with me, I am still learning Java and there is a lot I do not yet know.</p>

<p>By following an online tutorial I have created a simple logging in/registering app which connects to Firebase. However, I would now like to update some of the data in the database without altering the other data. For example, for the logged in user, the code below allows then to enter their name and address. But what about if on another activity I wanted them to be able to add their age. Using set() will overwrite all other date, but I can't figure out how to use update().</p>

<p>I have searched this forum and elsewhere but don't really understand the answers enough to apply them to my situation. If anyone could help I would really appreciate it.</p>

<p>Thanks</p>

<pre><code>    private void saveUserInformation(){

    String name = editTextName.getText().toString().trim();
    String address = editTextAddress.getText().toString().trim();

    UserInformation userInformation = new UserInformation(name, address);
    FirebaseUser user = firebaseAuth.getCurrentUser();
    databaseReference.child(user.getUid()).setValue(userInformation);

    Toast.makeText(this, "Information Saved...", Toast.LENGTH_SHORT).show();
}
</code></pre>

<p>and</p>

<pre><code>public class UserInformation {

public String name;
public String address;

public UserInformation(String name, String address) {
    this.name = name;
    this.address = address;
}
</code></pre>

<p>}</p>