Why is my app shutting down once I click a button?
<p>I am developing an app for android, and it is a quiz. On on page there are two buttons. One works, and one does not. When I open up the emulator, and press the button, the app closes down and this message appears: "The application has unexpectedly shut down" I don't know what I am missing. Here is the Manifest and the three activities:
Here is the Java file with the two buttons:</p>

<pre><code>package com.saifandvarun.quizofidiocy;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.app.Activity;
import android.content.Intent;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle iLikeTennis) {
        super.onCreate(iLikeTennis);
        setContentView(R.layout.activity_main);

        Button failstart = (Button) findViewById(R.id.loser);
        failstart.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                // TODO Auto-generated method stub
                startActivity(new Intent("com.saifandvarun.quizofidiocy.FAILSCREEN"));
            }
        });

        Button truestart = (Button) findViewById(R.id.the_quiz);
        truestart.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                // TODO Auto-generated method stub
                startActivity(new Intent("com.saifandvarun.quizofidiocy.FIRSTQUESTION"));
            }
        });

    }

    @Override
    protected void onPause() {
        // TODO Auto-generated method stub
        super.onPause();
    }
}
</code></pre>

<p>Here is the matching xml file:</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/home_back" &gt;

    &lt;TextView
        android:id="@+id/textView1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="22dp"
        android:text="Welcome To The Quiz Of Idiocy."
        android:textColor="#DF013A"
        android:textSize="21dp"
        android:textStyle="bold|italic" /&gt;

    &lt;TextView
        android:id="@+id/textView2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_below="@+id/textView1"
        android:layout_marginTop="34dp"
        android:text="The rules are simple, get the question right, you move on, get it wrong, you&amp;apos;re an idiot. (Oh yeah, and you lose)"
        android:textSize="20dp"
        android:textStyle="bold" /&gt;

    &lt;Button
        android:id="@+id/the_quiz"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_marginBottom="102dp"
        android:text="Just A Pointless Button..."
        android:textSize="25dp"
        android:textStyle="bold" /&gt;

    &lt;Button
        android:id="@+id/loser"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_centerVertical="true"
        android:text="START!!"
        android:textColor="#00FF00"
        android:textSize="34dp"
        android:textStyle="bold|italic" /&gt; 

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

<p>Here is the java file to which the working button navigates to:</p>

<pre><code>package com.saifandvarun.quizofidiocy;
import android.app.Activity;
import android.os.Bundle;

public class Firstquestion extends Activity {

    @Override
    protected void onCreate(Bundle iLikeCricket) {
        // TODO Auto-generated method stub
        super.onCreate(iLikeCricket);
        setContentView(R.layout.firstquestion);
    }
}
</code></pre>

<p>here is the xml layout file matching that:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" &gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>and here is java the file where the non-working button should navigate to:</p>

<pre><code>package com.saifandvarun.quizofidiocy;
import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Failscreen extends Activity {

    MediaPlayer whawHawha;

    @Override
    protected void onCreate(Bundle iLikeTabletennis) {
        // TODO Auto-generated method stub
        super.onCreate(iLikeTabletennis);
        setContentView(R.layout.failscreen);
        MediaPlayer.create(Failscreen.this, R.raw.lose_sound);
        whawHawha.start();

        Button retry = (Button) findViewById(R.id.tryagain);
        retry.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                // TODO Auto-generated method stub
                startActivity(new Intent("android.intent.action.MAIN"));
            }
        });
    }

    @Override
    protected void onPause() {
        // TODO Auto-generated method stub
        super.onPause();
        whawHawha.release();
    }
}
</code></pre>

<p>And the xml file for that: </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#000000" &gt;

    &lt;TextView
        android:id="@+id/textView1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:text="LOSER!!! You lost, Idiot!"
        android:textColor="#ff0000"
        android:textSize="70dp"
        android:textStyle="bold" &gt;
    &lt;/TextView&gt;

    &lt;Button
        android:id="@+id/tryagain"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_below="@+id/textView1"
        android:layout_marginTop="22dp"
        android:text="Try Again???"
        android:textColor="#ffffff"
        android:textStyle="bold|italic" &gt;
    &lt;/Button&gt;

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

<p>finaly here is the mainfest:</p>

<pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.saifandvarun.quizofidiocy"
    android:versionCode="1"
    android:versionName="1.0" &gt;

    &lt;uses-sdk
        android:minSdkVersion="9"
        android:targetSdkVersion="15" /&gt;

    &lt;application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" &gt;

        &lt;activity
            android:name=".MainActivity"
            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;

        &lt;activity
            android:name=".Failscreen"
            android:label="@string/app_name" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="com.saifandvarun.quizofidiocy.FAILSCREEN" /&gt;
                &lt;category android:name="android.intent.category.DEFAULT" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;

        &lt;activity
            android:name=".Firstquestion"
            android:label="@string/app_name" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="com.saifandvarun.quizofidiocy.FIRSTQUESTION" /&gt;
                &lt;category android:name="android.intent.category.DEFAULT" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;/application&gt;
&lt;/manifest&gt;
</code></pre>

<p>I don't know what I'm missing. Please help me.</p>
