title: Cannot move on to a new layout
body: <p>Hi I want to move on to a new layout or intent in android java when I press a button.  Currently I have a login_or_register.xml and within it I have a button which has an onclick attribute called menuLogin</p>
  
  <pre><code>&lt;Button
      android:id="@+id/LogIn"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:text="@string/LOGIN" 
      android.onClick="menuLogin"/&gt;
  </code></pre>
  
  <p>and then in my login_or_register.java I have</p>
  
  <pre><code>public void menuLogin(View view)
  {
      Intent intent = new Intent(this, login.class);
      startActivity(intent);
  }
  </code></pre>
  
  <p>and I want to be able to move to the login layout in which the code goes like this</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.login);
      }
  </code></pre>
  
  <p>I am not quite sure why but when I click the button it does not go on to the new layout.  Oh also within my androidmanifest.xml it looks like this</p>
  
  <pre><code> &lt;activity
          android:name="com.example.ACW.login"
          android:label="@string/app_name" &gt;
      &lt;/activity&gt;
  
        &lt;activity
          android:name="com.example.ACW.Login_or_register"
          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;
  </code></pre>
  
  <p>some extra things are that I have a login.java and a login.xml as well</p>