title: App crashes when changing intent?
body: <p>I set an imageview to change my activity onClick, for some reason it crashes each time I click the imageview on my device. Any ideas? I feel as if this is a very general answer that I am missing. Also if you have any reading material you could link related to my mistake it would help me greatly. Thank you!</p>
  
  <p>Main Activity</p>
  
  <pre><code>    package com.gcomcode.oakgang;
  
  
  import android.content.Intent;
  import android.os.Bundle;
  import android.support.v7.app.ActionBarActivity;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.ImageView;
  
  public class MainActivity extends ActionBarActivity {
  
  ImageView bioicon;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
  
      ImageView musicicon = (ImageView) findViewById(R.drawable.musicicon);
      ImageView galleryicon = (ImageView) findViewById(R.drawable.gallery);
      ImageView connecticon = (ImageView) findViewById (R.drawable.connecticon);
      ImageView contacticon = (ImageView) findViewById (R.drawable.contacticon);
      ImageView eventsicon = (ImageView) findViewById (R.drawable.eventsicon);
              }
  public void bioClick() {
       bioicon  = (ImageView) findViewById(R.drawable.bioicon);
       bioicon.setOnClickListener(new OnClickListener() {
           @Override
           public void onClick(View view) {
               Intent bioIntent = new Intent(MainActivity.this, BioActivity.class);
               startActivity(bioIntent);
  
           }
  
       });
  
  
  
  }
  }
  </code></pre>
  
  <p>and here is the corresponding layout</p>
  
  <pre><code>    &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/container"
  android:layout_width="fill_parent"
  android:layout_height="match_parent"
  android:background="@color/black"
  tools:context="com.gcomcode.oakgang.MainActivity"
  tools:ignore="MergeRootFrame" &gt;
  
  &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:gravity="center_vertical" &gt;
  
      &lt;ImageView
          android:id="@+id/imageView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="@color/black"
          android:src="@drawable/oakganglogo" 
           /&gt;
  
      &lt;android.support.v7.widget.Space
          android:id="@+id/space1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true"
          android:layout_marginLeft="144dp"
          android:layout_marginTop="216dp" /&gt;
  
  &lt;/RelativeLayout&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="100dp" &gt;
  
      &lt;ImageView
          android:id="@+id/bioicon"
          android:layout_width="100dp"
          android:layout_height="100dp"
          android:src="@drawable/bioicon"
          android:onClick="bioClick" /&gt;
  
      &lt;android.support.v7.widget.Space
          android:id="@+id/space3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" /&gt;
  
      &lt;ImageView
          android:id="@+id/musicicon"
          android:layout_width="100dp"
          android:layout_height="100dp"
          android:src="@drawable/musicicon" /&gt;
  
      &lt;ImageView
          android:id="@+id/galleryicon"
          android:layout_width="100dp"
          android:layout_height="100dp"
          android:src="@drawable/gallery" /&gt;
  
      &lt;android.support.v7.widget.Space
          android:id="@+id/space2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" /&gt;
  &lt;/LinearLayout&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="85dp"
      android:layout_gravity="bottom" &gt;
  
      &lt;ImageView
          android:id="@+id/eventsicon"
          android:layout_width="100dp"
          android:layout_height="85dp"
          android:src="@drawable/eventsicon" /&gt;
  
      &lt;ImageView
          android:id="@+id/contacticon"
          android:layout_width="100dp"
          android:layout_height="85dp"
          android:src="@drawable/contacticon" /&gt;
  
      &lt;ImageView
          android:id="@+id/connecticon"
          android:layout_width="100dp"
          android:layout_height="85dp"
          android:src="@drawable/connecticon" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>This is the activity I am trying to open</p>
  
  <pre><code>    package com.gcomcode.oakgang;
  
  import android.os.Bundle;
  import android.support.v7.app.ActionBarActivity;
  
  public class BioActivity extends ActionBarActivity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.bio_activity);
  
  
      }
  }
  </code></pre>