title: Passing data between activities
body: <p>My main activity contains a EditText and a button. 
  I would like to send whats written in the EditText to the next activity started by pressing the button. </p>
  
  <p>In the first activity I have this:</p>
  
  <pre><code>        Intent i = new Intent(firstActivity.this, secondActivity.class);  
          i.putExtra("myString", theEditText.getText());
          startActivity(i);
  </code></pre>
  
  <p>So far so good. In the second activity I use this:</p>
  
  <pre><code>  Bundle bundle = getIntent().getExtras(); 
    myRecivedString = bundle.getString("myString")
  </code></pre>
  
  <p>But here myRecivedString turns up empty. </p>
  
  <p>Any suggestions?</p>