exchange data between activities
<p>I created 2 <code>Activities</code>, Main and Second. And I want to send text, put in the box <code>EditText</code> from Main to Second activity. Id of first <code>EditText</code> is <code>UserName</code>, and of the second is <code>Description</code>.</p>

<p>The code of the Main activity is:</p>

<pre><code>package com.example.test;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.support.v4.app.NavUtils;
import android.content.Intent;
import android.widget.EditText;

public class Main extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);           
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

    public void onClick(View v) {
        Intent intent = new Intent(Main.this, Second.class);
        intent.putExtra("username", UserName.getText().toString()); 
        intent.putExtra("gift", Description.getText().toString());  
        startActivity(intent);
    }

    public void ButtonOneClick(View v) {
        switch (v.getId()) {
            case R.id.button1:
                Intent i = new Intent(this, Second.class);
                startActivity(i);
                break;
        }
    } 
}
</code></pre>

<p>Full code of the Second Activity is:
    package com.example.test;</p>

<pre><code>import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;

public class Second extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.second);

        TextView txtInfo = (TextView)findViewById(R.id.TextOne);

        String user = "ЖЫвотное";
        String gift = "дырку от бублика";

        user = getIntent().getExtras().getString("username");
        gift = getIntent().getExtras().getString("gift");

        txtInfo.setText(user + " , вам передали " + gift);
    }
}
</code></pre>

<p>and errors:</p>

<pre><code>main.java: Description cannot be resolved
main.java: UserName cannot be resolved
</code></pre>

<p>sorry for my english</p>

<p>Thanks for help</p>

<p>P.S. I'm studying java and programming for android just third day, please don't throw stones to me. </p>
