title: Button click not moving to the new activity
body: <p>On pressing the send button in my code, it must move to the new activity which i created. But this is not taking place. I have the code below. 
  Please help. I am just a beginner in android studio.</p>
  
  <p>.xml file(layout)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  tools:context="com.example.myfirstapp.MainActivity"
  android:id="@+id/relativeLayout"
  tools:layout_editor_absoluteY="81dp"
  tools:layout_editor_absoluteX="0dp"&gt;
  
  &lt;EditText
      android:id="@+id/editText3"
      android:layout_width="0dp"
      android:layout_height="wrap_content"
      android:layout_marginLeft="16dp"
      android:layout_marginRight="0dp"
      android:layout_marginTop="16dp"
      android:ems="10"
      android:hint="@string/edit_message"
      android:inputType="textPersonName"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toLeftOf="@+id/button"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintHorizontal_bias="0.0" /&gt;
  
  &lt;Button
      android:id="@+id/button"
      android:layout_width="85dp"
      android:layout_height="42dp"
      android:layout_marginRight="16dp"
      android:layout_marginTop="16dp"
      android:onClick="sendMessage"
      android:text="@string/button_send"
      app:layout_constraintRight_toRightOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      tools:text="@string/button_send" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>main activity</p>
  
  <pre><code>package com.example.myfirstapp;
  import android.content.Intent;
  import android.os.Bundle;
  import android.support.v7.app.AppCompatActivity;
  import android.view.View;
  import android.widget.EditText;
  public class MainActivity extends AppCompatActivity {
  public static final String EXTRA_MESSAGE = "com.example.myfirstapp.MESSAGE";
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  }
  
  public void sendMessage(View view) {
      Intent intent = new Intent(this, DisplayMessageActivity.class);
      EditText editText = (EditText) findViewById(R.id.editText3);
      String message=editText.getText().toString();
      intent.putExtra(EXTRA_MESSAGE,message);
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.myfirstapp"&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity android:name=".MainActivity"&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=".DisplayMessageActivity"
          android:parentActivityName=".MainActivity"&gt;
  
          &lt;meta-data
                  android:name="android.support.PARENT_ACTIVITY"
                  android:value=".MainActivity"/&gt;
  
  
      &lt;/activity&gt;
  
  
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>Please help in resolving the issue. I am new to Android Studio</p>