title: how to assign an intent content to to an already created textview in android
body: <p>I am an beginner in Android development. I Have created a main activity and a second activity. The main activity contains an edittext and a button. The second activity contains some textviews. I have to display the content of the edittext in one of the textviews (eg:textview1) along with a Welcome message. Other textviews in the second activity displays text I have entered in the second activity xml code. </p>
  
  <p>My java code for the second activity is this </p>
  
  <pre><code>Intent intent = getIntent()
  String message = intent.getStringExtra(Main Activity.EXTRA_MESSAGE);
  TextView text = (TextView) findViewById(R.id.textView16);
  text.setText(message);
  </code></pre>
  
  <p>when running this I am getting an error. Please help</p>