title: How to add new data in firebase android
body: <p>This is my logic for adding new person in firebase realtime databse. But instead of making a new entry it is just updating the old data with new one.</p>
  
  <pre><code>buttonSave.setOnClickListener(new View.OnClickListener() {
          public void onClick(View v) {
  
  
              /*
              new Firebase(Config.FIREBASE_URL)
                      .push()
                      .child("title")
                      .setValue(text.getText().toString());
              */
  
              Firebase ref = new Firebase(Config.FIREBASE_URL);
              String name = editTextName.getText().toString().trim();
              String address = editTextAddress.getText().toString().trim();
  
              //Creating Person object
              Person person = new Person();
  
              //Adding values
              person.setName(name);
              person.setAddress(address);
              ref.child("Person").setValue(person);
  
          }
      });
  
  
      new Firebase(Config.FIREBASE_URL).addValueEventListener(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot snapshot) {
              for (DataSnapshot postSnapshot : snapshot.getChildren()) {
                  //Getting the data from snapshot
                  Person person = postSnapshot.getValue(Person.class);
  
                  //Adding it to a string
                  String string = "Name: "+person.getName()+"\nAddress: "+person.getAddress()+"\n\n";
  
                  //Displaying it on textview
                  textViewPersons.setText(string);
              }
          }
  
          @Override
          public void onCancelled(FirebaseError firebaseError) {
              System.out.println("The read failed: " + firebaseError.getMessage());
          }
      });
  </code></pre>
  
  <p>What is wrong here? Can anyone help me on this?</p>