I have the following node in the firebase:
InsidedesnóIneedtoaccesstheuservalueandchangeit,todothisIamusingthiscode:
firebaseSenha=ConfiguracaoFirebase.getFirebase().child("usuarios").child(identificadorUsuarioLogado);
firebaseSenha.addListenerForSingleValueEvent(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
Usuario usuarioSenha = dataSnapshot.getValue(Usuario.class);
String senhaRecuperada = senha.getText().toString();
firebaseSenha = ConfiguracaoFirebase.getFirebase();
firebaseSenha = firebaseSenha.child("usuarios").child(identificadorUsuarioLogado);
Usuario usuario = new Usuario();
usuario.setSenha(senhaRecuperada);
firebaseSenha.setValue(usuario);
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});
But these code is causing all the other fields inside the node to go out and about only the changed password value, how do I change only the password value, without deleting the others.
After running the code it looks like this: