title: on add previous element getting replaced in ArrayList
body: <p>did debugging. I can clearly see after entryLogs.add(dl); in the value of entryLogs. the first data is replaced and a second has been inserted to the ArrayList.</p>
  
  <p>what is happening is every time i enter new value it adds it in the ArrayList but replaces the the first entry to be same as the second entry. 
  for example: 
  I add A and onclick it adds A. 
  again, add B and onclick it add B. 
  but in the Arraylist  the value is [17/4/2014:20:29 B, 17/4/2014:20:29 B]</p>
  
  <p>Please suggest what needs to be done.
  Entire code can be found here: <a href="https://github.com/tirthoguha/DroidProject/blob/myDiary/src/com/example/s0217980_diary/Monday_fragment.java" rel="nofollow">https://github.com/tirthoguha/DroidProject/blob/myDiary/src/com/example/s0217980_diary/Monday_fragment.java</a></p>
  
  <pre><code>entryLogs = new ArrayList&lt;DiaryLogs&gt;();
  
              timeText = (EditText) getView().findViewById(R.id.dateTimeEText);
  
              entryText = (EditText) getView().findViewById(R.id.diaryEntryEText);
  
              Button saveBtn = (Button) getView()
                      .findViewById(R.id.saveDiaryEntryBtn);
              saveBtn.setOnClickListener(new View.OnClickListener() {
  
                  @Override
                  public void onClick(View v) {
                      // TODO Auto-generated method stub
  
                      timeEntry = timeText.getText().toString();
  
                      entryEntered = entryText.getText().toString();
  
                      dl = new DiaryLogs(1, timeEntry, entryEntered);
  
                      entryLogs.add(dl);
  </code></pre>