Application keeps force closing when I try to run in emulator using Eclipse. Help needed
<p>So I am sort of a noob to java and programming at that. I am picking it up however. Recently I have tried to run my app on an emulator but it force closes. It is probably my fault but i can't find any errors. So i decided to turn to you guys since you seem experienced. Any help would be appreciated.</p>

<p>This is the manifest file:</p>

<pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.MrNom"
      android:versionCode="1"
      android:versionName="1.0" 
      android:installLocation="preferExternal"&gt;


    &lt;application android:icon="@drawable/icon"  android:label="@string/app_name" 
                 android:debuggable="true"&gt;
        &lt;activity android:name=".Mr.NomActivity"
                  android:label="@string/app_name" android:screenOrientation="landscape"      android:configChanges="keyboard|keyboardHidden|orientation"&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;/application&gt;


&lt;uses-sdk android:minSdkVersion="3" android:targetSdkVersion="8"/&gt;
    &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
    &lt;uses-permission android:name="android.permission.WAKE_LOCK"/&gt;
&lt;/manifest&gt;
</code></pre>

<p>This is the 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"
        android:weightSum="1"&gt;
    &lt;TextView android:layout_width="fill_parent" android:textSize="30dp" android:text="Mr. Nom"    android:layout_weight="0.05" android:gravity="center" android:layout_height="wrap_content" android:textStyle="bold"&gt;&lt;/TextView&gt;
    &lt;Button android:layout_width="160dp" android:text="Play" android:id="@+id/Button02" android:clickable="true" android:layout_weight="0.06" android:layout_height="wrap_content" android:layout_gravity="center" android:textSize="25dp"&gt;&lt;/Button&gt;
    &lt;Button android:layout_width="160dp" android:text="Settings" android:id="@+id/Button03" android:clickable="true" android:layout_height="wrap_content" android:textSize="25dp" android:layout_gravity="center" android:layout_weight="0.06"&gt;&lt;/Button&gt;
    &lt;Button android:layout_width="160dp" android:text="Help" android:id="@+id/Button01" android:clickable="true" android:layout_weight="0.06" android:layout_height="wrap_content" android:layout_gravity="center" android:textSize="25dp"&gt;&lt;/Button&gt;
    &lt;Button android:layout_width="160dp" android:id="@+id/button1" android:clickable="true" android:layout_weight="0.06" android:layout_height="wrap_content" android:textSize="25dp" android:layout_gravity="center" android:text="High Scores"&gt;&lt;/Button&gt;&lt;/LinearLayout&gt;
</code></pre>

<p>So once again I'm new to this but I thought you guys might need this code. Just let me know if you need anything else.</p>

<p>Heres the activity code:</p>

<pre><code>package Mr;

import com.MrNom.R;
import android.app.Activity;
import android.os.Bundle;

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

<p>}</p>

<p>When I tried to run the app this was red in logcat.</p>

<p>07-29 18:30:29.347: ERROR/AndroidRuntime(333): FATAL EXCEPTION: main
07-29 18:30:29.347: ERROR/AndroidRuntime(333): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.MrNom/com.MrNom.Mr.NomActivity}: java.lang.ClassNotFoundException: com.MrNom.Mr.NomActivity in loader dalvik.system.PathClassLoader[/data/app/com.MrNom-1.apk]
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at android.os.Looper.loop(Looper.java:123)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at android.app.ActivityThread.main(ActivityThread.java:4627)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at java.lang.reflect.Method.invokeNative(Native Method)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at java.lang.reflect.Method.invoke(Method.java:521)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at dalvik.system.NativeStart.main(Native Method)
07-29 18:30:29.347: ERROR/AndroidRuntime(333): Caused by: java.lang.ClassNotFoundException: com.MrNom.Mr.NomActivity in loader dalvik.system.PathClassLoader[/data/app/com.MrNom-1.apk]
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
07-29 18:30:29.347: ERROR/AndroidRuntime(333):     ... 11 more</p>

<p>So to clarify it should look like this:</p>

<pre><code>package com.MrNom;

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

public class NomActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }

}
</code></pre>
