The code is given below which adds sub-child under \'Contacts\' by \'name\' instead unique key.
String name = CName.getText().toString().trim(); DatabaseRefer