title: How to pass data from 2nd activity to 1st activity when pressed back? - android
body: <p>I've 2 activities, <strong>Activity1</strong> and <strong>Activity2</strong>.</p>
  
  <p>In <code>Activity1</code> I've a <strong>Button</strong> and <strong>TextView</strong>.
  When the button is clicked <strong>Activity2</strong> is started.</p>
  
  <p>In <code>Activity2</code> I've an <strong>EditText</strong>.</p>
  
  <p>I want to display the data retrieved from <strong>EditText</strong> in <strong>Activity2</strong> in the <strong>TextView</strong> in <strong>Activity1</strong> when back is pressed from <strong>Activity2</strong>.</p>
  
  <p>can someone help me with the code to make this work?</p>