Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6191163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:42:56+00:00 2026-05-24T02:42:56+00:00

So I am sort of a noob to java and programming at that. I

  • 0

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.

This is the manifest file:

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


    <application android:icon="@drawable/icon"  android:label="@string/app_name" 
                 android:debuggable="true">
        <activity android:name=".Mr.NomActivity"
                  android:label="@string/app_name" android:screenOrientation="landscape"      android:configChanges="keyboard|keyboardHidden|orientation">
            <intent-filter>

                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>


    </application>


<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="8"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
</manifest>

This is the XML:

 <?xml version="1.0" encoding="utf-8"?>
    <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">
    <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"></TextView>
    <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"></Button>
    <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"></Button>
    <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"></Button>
    <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"></Button></LinearLayout>

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.

Heres the activity 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);
    }

}

When I tried to run the app this was red in logcat.

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

So to clarify it should look like this:

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);
    }

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:42:57+00:00Added an answer on May 24, 2026 at 2:42 am

    This line:

    import com.MrNom.R;
    

    should be

    package com.MrNom
    

    And remove the package Mr;

    Also in the manifest xml file this line:
    activity android:name=”.Mr.NomActivity”
    Should be:
    activity android:name=”Mr.NomActivity”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably a noob question that I will get slated for but here
Okay, I'm a real LaTeX noob. But I will have to use it. And
Hey guys I am still sort of a noob but today I finished up
I'm a total Ruby/Rails/AR noob. I have a very basic sort of database schema
I'm new to programming in any sort of assembly, and since I've heard that
Sort of a mongo noob, and I have a feeling I am tackling this
Hey! Total CakePHP noob here. Updated at bottom / This is sort of a
Sort of a methods/best practices question here that I am sure has been addressed,
I often have to sort a dictionary (consisting of keys & values) by value.
This is a bit of a noob question but what do I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.