title: how can we send data from first activity to second activity and second activity to first activity bu using intent
body: <p>Hi I am getting the problem to send the data from second activity to first activity </p>
  
  <pre><code>Intent i=new Intent();
  i.setClass(SecondActivity.this,MainActivity.class);
  Toast.makeText(SecondActivity.this, "this is second activity", Toast.LENGTH_SHORT).show();
  String name=ed1.getText().toString();
  i.putExtra("ok",name);
  setResult(RESULT_OK, i);
  startActivity(i);
  </code></pre>
  
  <p>how can we recive the data on first activity </p>