Force Stop occurs although build has no error ?
<p>My program is not working well, and I don't understand why, mind helping out please?</p>

<pre><code>    package project.ernest;

 import android.app.Activity;
 import android.content.Intent;
 import android.os.Bundle;

 public class Part1 extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.main);
    }
    Intent DisclaimerHandler = new Intent(getBaseContext(), Part2.class);
    {
    Part1.this.startActivity(DisclaimerHandler);
   }
} 
</code></pre>

<p>I have 2 .java file, namely, Part1 and Part2. 
as well as a .xml file name disclaimer placed under layout</p>

<p>I tried to run it, but it gave me a force stop. </p>
