title: Android App crashes when switching between activities
body: <p>My app was working absolutely fine when it suddenly started crashing after the first page. The first page only contains one button which leads it to the next activity. Helpppp</p>
  
  <pre><code>    package com.example.assignmenttwo;
  
  
      import android.os.Bundle;
      import android.app.Activity;
      import android.content.Intent;
      import android.view.Menu;
      import android.view.View;
      import android.view.View.OnClickListener;
      import android.widget.Button;
  
      public class MainActivity extends Activity implements OnClickListener {
  
  @Override
  
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      Button addReminder= (Button) findViewById(R.id.addReminder);
      addReminder.setOnClickListener(this); 
  }
  
  
          public void onClick(View v) {
              Intent ListofRemindersScr= new      Intent(this,ListOfReminders.class);
              startActivity(ListofRemindersScr);
  
              // TODO Auto-generated method stub
  
          }
  </code></pre>
  
  <p>}</p>