Unknown error with Android: 2.3.3 - error "application...stopped unexpectedly
<p>Java code:</p>

<pre><code>package wip.test.app1;

import android.app.Activity;
import android.os.Bundle;
import android.widget.RadioButton;
import android.widget.TextView;
import java.util.Random;



public class WIPTEST extends Activity {
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     while(true)
     {
        Random generate = new Random();
        int seed = generate.nextInt(4);
        //QUESTIONS
        String question[] = new String[4];
        question[0]="Who is the current president of the United States?";
        question[1]="Who is the current president of the United States?";
        question[2]="Who is the current president of the United States?";
        question[3]="Who is the current president of the United States?";
        //ANSWERS
        //CN: answer[corresponding question][question number]
        String answer[][] = new String[4][4];
        answer[0][0]="George W. Bush";
        answer[0][1]="Barrack Obama";
        answer[0][2]="Chuck Norris";
        answer[0][3]="George Washington";
        answer[1][0]="George W. Bush";
        answer[1][1]="Barrack Obama";
        answer[1][2]="Chuck Norris";
        answer[1][3]="George Washington";
        answer[2][0]="George W. Bush";
        answer[2][1]="Barrack Obama";
        answer[2][2]="Chuck Norris";
        answer[2][3]="George Washington";
        answer[3][0]="George W. Bush";
        answer[3][1]="Barrack Obama";
        answer[3][2]="Chuck Norris";
        answer[3][3]="George Washington";
        //CORRECT_ANSWERS
        int correct[] = new int[4];
        correct[0]=1;
        correct[1]=2;
        correct[2]=2;
        correct[3]=2;
        TextView tv = (TextView) findViewById(R.id.tv);
        tv.setText(question[seed]);
        RadioButton a = (RadioButton) findViewById(R.id.a);
        RadioButton b = (RadioButton) findViewById(R.id.b);
        RadioButton c = (RadioButton) findViewById(R.id.c);
        RadioButton d = (RadioButton) findViewById(R.id.d);
        a.setText(answer[seed][0]);
        b.setText(answer[seed][1]);
        c.setText(answer[seed][2]);
        d.setText(answer[seed][3]);
        setContentView(R.layout.main);
     }
   }
}
</code></pre>

<p>Note: these are sample questions</p>

<p>XML:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    &gt;
&lt;TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:id="@+id/tv"
    android:textSize="15sp"
    /&gt;
&lt;RadioGroup&gt;
&lt;RadioButton
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:id="@+id/a"
/&gt;
&lt;RadioButton
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:id="@+id/b"
/&gt;
&lt;RadioButton
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:id="@+id/c"
/&gt;
&lt;RadioButton
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:id="@+id/d"
/&gt;
&lt;/RadioGroup&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>Eclipse does not give any errors on the java code or on the xml but when i run it on the emulator (2.3.3) it gives an error</p>

<blockquote>
  <p>The application (process wip.test.app1) has stopped unexpectedly. Please try again.</p>
</blockquote>

<p>I have tried multiple times including changing the code to be only in the one function and not in different functions.  Also, I am somewhat unfamiliar with the Android SDK, but I am capable in both C++ and Java.</p>
