title: cannot resolve symbol 'editText'
body: <pre><code>public void sendMessage(View view) {
      // Do something in response to button
      Intent intent = new Intent(this, DisplayMessageActivity.class);
      EditText editText = (EditText) findViewById(R.id.editText);
      String message = editText.getText().toString();
      intent.putExtra(EXTRA_MESSAGE, message);
      startActivity(intent);
  </code></pre>
  
  <p>I just started Android prog! so i am following this guide "Start Another Activity" fro google: <a href="https://developer.android.com/training/basics/firstapp/starting-activity.html" rel="noreferrer">https://developer.android.com/training/basics/firstapp/starting-activity.html</a> 
  Error occurs in this line         EditText editText = (EditText) findViewById(R.id.editText);
  In the "(R.id.editText)" part! 
  so if someone can explain why &amp; how am getting this error it will be greately helpful! Thanks in advance!</p>