title: Linking two activity in android
body: <p>I'm coding a simple android app where you write in a box your name then click ok and a new page will show your name... The problem is that when you click ok nothing happens.</p>
  
  <p>Here the main activity</p>
  
  <pre><code>public class Click extends Activity implements OnClickListener{
  
          @Override
          public void onClick(View v) {
                  // TODO Auto-generated method stub
                  String TypedText = (String)MyText.getText().toString();
                  Intent MyInt = new Intent(this, HelloWorld.class);
                  MyInt.putExtra("user", TypedText);
                  this.startActivity(MyInt);     
                  Bundle Retrive = this.getIntent().getExtras();
                  Retrive.getString("user");
                  setContentView(R.id.Text);
                  TextView TextV = (TextView)findViewById(R.id.Text);
                  TextV.setText("user");                   
  
          }
          android.widget.EditText MyText;
  
          public void OnCreate (Bundle savedInstanceState){
                  super.onCreate(savedInstanceState);
                  this.setContentView(R.layout.name_getter);
                  MyText = (EditText)this.findViewById(R.id.editText1);
                  this.findViewById(R.id.button1);
                  android.widget.Button RefBut = (Button)this.findViewById(R.id.button1);
                  RefBut.setOnClickListener(this);
  
                  }
  </code></pre>
  
  <p>And here the manifest</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
       package="edu.calpoly.android.lab1Sada"
       android:versionCode="1"
       android:versionName="1.0"&gt;
      &lt;uses-sdk android:minSdkVersion="4" /&gt;
  
      &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
          &lt;activity android:name=".Click"
                   android:label="@string/app_name"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:name="HelloWorld" &gt;&lt;/activity&gt;
  
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Starting the android emulator will launch the first activity click but then the app doesn't show the new view...</p>