Why does my application keep getting "The application <ClassName> (<package.ClassName>) has stopped unexpectedly. Please try again later." error?
<p>I followed the developer guides on the Android website. It is working fine for a Hello World application but when I try and transition between Activities, my application keeps giving an "The application  () has stopped unexpectedly. Please try again later." error and the application then quits. <strong>This happens when I click the button in the Subscribe Activity.</strong> </p>

<p><strong>Subscribe.java</strong></p>

<pre><code>public class Subscribe extends Activity
implements OnClickListener {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.subscribe);

    Button subButton = (Button)findViewById(R.id.subscribe);
    subButton.setOnClickListener(this);
}

public void onClick(View v) {
    Intent subIntent = new Intent(Subscribe.this,Subscribed.class);
    startActivity(subIntent);
    }
}
</code></pre>

<p><strong>Subscribed.java</strong></p>

<pre><code>public class Subscribed extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.subscribed);
 }

}
</code></pre>

<p><a href="http://www.cise.ufl.edu/~cheenu/logcat.rtf" rel="nofollow">Logcat Log File</a></p>
