how to move data between 2 activities
<p>i have a first screen in my app that the user enter his name in an editText.Then, when the user presses the button "ok",the app is going to a new activity.I would like to get the text from the first activity and move it to the second.For example,if the user fills the edittext with the name "kostas",when he goes to the second activity,to appear a textView writing "Hello kostas"..</p>

<p>i have tried to use putExtra, but i m thinking that i m doing it in a wrong way.In the first class i m using this   </p>

<pre><code>Button ok = (Button) findViewById(R.id.ok);
        ok.setOnClickListener(new View.OnClickListener() {

            public void onClick (View view) {

                 Intent newActivity = new Intent(view.getContext(),home.class);

                newActivity.putExtra("NAME", name);
                    startActivity(newActivity);

            }  

        });
</code></pre>

<p>in order to move the name into my next activity "home".but then i dont know how to get it there...</p>

<p>and then in my new "home" activity i m using this:</p>

<pre><code> Bundle extras = getIntent().getExtras();

        String Name = extras.getString("NAME");
</code></pre>
