title: Transfer content from EditText to another activity on buttonclick
body: <p>I need to transfer the contents of an EditText to another activity on Button click.</p>
  
  <p>This is my current code for start of new activity:</p>
  
  <pre><code>Button proceed;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
      setContentView(R.layout.intro);
  
      proceed = (Button) findViewById(R.id.bProceed);
      proceed.setOnClickListener(new OnClickListener() {
          public void onClick(View v) {
              Intent myIntent = new Intent(Introscreen.this, BillardScoreboardActivity.class);
              Introscreen.this.startActivity(myIntent);
              myIntent.putExtra ??????
          }
      }); 
  }
  </code></pre>
  
  <p>The contents are supposed to be integers in the next activity.</p>
  
  <p>Hope someone can help me.</p>
  
  <p><strong>Final problem:</strong></p>
  
  <pre><code>Intent i = getIntent()  //Error message if ";" isn't put after getintent()
  String var = i.getStringExtra("lol");
  int convert = Integer.parseInt(var); //Error message if ";" is put after getIntent()
  </code></pre>