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 6194375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:17:11+00:00 2026-05-24T03:17:11+00:00

When I try to run this code it force closes. And I apologize in

  • 0

When I try to run this code it force closes. And I apologize in advance because I am a noob at java.

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

}

This was red in LogCat right before it force closed.

07-29 18:59:40.626: ERROR/AndroidRuntime(347): FATAL EXCEPTION: main
07-29 18:59:40.626: ERROR/AndroidRuntime(347): 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:59:40.626: ERROR/AndroidRuntime(347):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at android.os.Looper.loop(Looper.java:123)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at android.app.ActivityThread.main(ActivityThread.java:4627)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at java.lang.reflect.Method.invokeNative(Native Method)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at java.lang.reflect.Method.invoke(Method.java:521)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at dalvik.system.NativeStart.main(Native Method)
07-29 18:59:40.626: ERROR/AndroidRuntime(347): Caused by: java.lang.ClassNotFoundException: com.MrNom.Mr.NomActivity in loader dalvik.system.PathClassLoader[/data/app/com.MrNom-1.apk]
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
07-29 18:59:40.626: ERROR/AndroidRuntime(347):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
  • 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-24T03:17:12+00:00Added an answer on May 24, 2026 at 3:17 am

    In your AndroidManifest.xml, find where you declare that activity and change it’s name property from “com.MrNom.Mr.NomActivity” to “com.MrNom.NomActivity”.

    As you can see from your activity class, it’s in package “com.MrNom”, not “com.MrNom.Mr”

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

Sidebar

Related Questions

so when i run this code to try to change the background the GUI
If I try to run this query in SQL Server 2005: SELECT 1 WHERE
I get a generic failure when I try to run: saslpasswd2 username This was
I have this script and when i try to run it, it just says
Whenever i try to run sqlmetal, i get this: 'sqlmetal' is not recognized as
I get this, when I try to run my PHP. When I comment out
I code abide by http://android-er.blogspot.com/2009/10/multi-language-translate.html and it force close private void showLang() { db.open();
When I try to run the following code I get an error. The emulator
I need to force my Java application to run with a single instance. I
I have code that, simplified down, looks like this: run = functools.partial(run, grep=options.grep, print_only=options.print_only,

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.