Switch view using intent (android studio)
<p>I have been trying to switch view using Intent and onClick. When i click on the button my app crashes. I have browsed trough similiar problems asked here but none of them seem to apply to what i have. Anyway, I was wondering if anyone could give me a vague hint on what is wrong with my code.</p>

<p>The button XML: </p>

<pre><code>  &lt;Button
    android:id="@+id/shapes"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="SHAPES"
    android:textSize="16dp"
    android:paddingBottom="20dp"
    android:paddingTop="20dp"
    android:paddingLeft="25dp"
    android:paddingRight="25dp"
    android:layout_marginTop="30dp"
    android:layout_below="@+id/textView"
    android:layout_centerHorizontal="true"
    android:onClick="onShapes"/&gt;
</code></pre>

<p>When button is clicked start Shapes.class (from MainActivity):</p>

<pre><code>    public void onShapes(View view) {
    Intent startShapes = new Intent(getApplicationContext(), Shapes.class);
    startActivity(startShapes);
}
</code></pre>

<p>Shapes.class, sets view to content_shapes: </p>

<pre><code>package com.example.******.****.buttonns;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.example.******.****.R;

public class Shapes extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.content_shapes);
    }
}
</code></pre>

<p>content_shapes (the view i want to see when pressing the button):</p>

<pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout 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"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:context="com.example.*******.*****.buttonns.Shapes"&gt;

    &lt;TextView
        android:text="Helloooo"
        android:gravity="center"
        android:textSize="32dp"
        android:layout_marginTop="30dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/Shapes_text" /&gt;

&lt;/RelativeLayout&gt;
</code></pre>

<p>And i also put this in the Manifest:</p>

<pre><code>    &lt;activity
        android:name=".buttonns.Shapes"
        android:label="@string/title_activity_shapes"
        android:parentActivityName=".MainActivity"
        android:theme="@style/AppTheme.NoActionBar"&gt;
        &lt;meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.example.********.*****.MainActivity" /&gt;
    &lt;/activity&gt;
</code></pre>

<p>I have been trying to figure out the fault for hours now.
By the way I am a total noob at Java, XML and Android Studio so dont hate me if I forgot something trivial. </p>