title: Function calling wrong class
body: <p>I am trying to use an intent to start two different classes in which I change either the text size or text colour of an entered message. Starting these classes is triggered by two different button push events in android studio. However, only the TextSize class is being started no matter what button I push and I cannot see the reason why. Below I have the problem activities class code and xml code</p>
  
  <pre><code>import android.content.Intent;
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.EditText;
  
  public class MainActivity extends AppCompatActivity {
  
  
  public static final String EXTRAA_MESSAGE ="message2";
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  }
  
  
  public void changeText(View v){
      EditText messageView = (EditText)findViewById(R.id.message);
      String messageText = messageView.getText().toString();
      Intent result = new Intent(this, TextSize.class);
      result.putExtra("message",messageText);
      startActivity(result);
  }
  
  public void changeColour(View v){
      EditText messageView = (EditText)findViewById(R.id.message);
      String messageText = messageView.getText().toString();
      Intent result = new Intent(this, ColourChange.class);
      result.putExtra("message",messageText);
      startActivity(result);
  }
  </code></pre>
  
  <p>My XML File</p>
  
  <pre><code>    &lt;TextView
          android:text="TextView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/textView2"
          android:layout_alignParentTop="true"
          android:layout_marginTop="14dp" /&gt;
  
      &lt;EditText
          android:id="@+id/message"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="28dp"
          android:ems="10"
          android:layout_below="@+id/textView2"
          android:layout_alignParentStart="true" /&gt;
  
      &lt;Button
          android:text="Change Colour"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/Colour"
          android:onClick="changeColour"
          android:layout_centerVertical="true" /&gt;
  
      &lt;Button
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="36dp"
          android:onClick="changeText"
          android:text="Change Text Size"
          android:layout_alignBaseline="@+id/Colour"
          android:layout_alignBottom="@+id/Colour"
          android:layout_alignParentEnd="true"
          android:layout_marginEnd="33dp"
          android:id="@+id/TextSize" /&gt;
  </code></pre>