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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:57:52+00:00 2026-06-01T09:57:52+00:00

I can find out the error in my apps. When am trying to execute

  • 0

I can find out the error in my apps. When am trying to execute my apps force close error is appeared.

public class Main extends Activity {
Button btnAdd;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    btnAdd = (Button) findViewById(R.id.btnAdd);
    btnAdd.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            Intent listIntent = new Intent (v.getContext(),Newbook.class) ;
            startActivity(listIntent);
        }
    });
}

}

and log cat error is

03-31 16:05:57.493: D/AndroidRuntime(387): Shutting down VM
03-31 16:05:57.493: W/dalvikvm(387): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
03-31 16:05:57.503: E/AndroidRuntime(387): Uncaught handler: thread main exiting due to uncaught exception
03-31 16:05:57.597: E/AndroidRuntime(387): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.sam.daybook/com.sam.daybook.DayBookActivity}: java.lang.ClassNotFoundException: com.sam.daybook.DayBookActivity in loader dalvik.system.PathClassLoader@44e8d908
03-31 16:05:57.597: E/AndroidRuntime(387):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
03-31 16:05:57.597: E/AndroidRuntime(387):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
03-31 16:05:57.597: E/AndroidRuntime(387):  at android.app.ActivityThread.access$2200(ActivityThread.java:119)
03-31 16:05:57.597: E/AndroidRuntime(387):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
03-31 16:05:57.597: E/AndroidRuntime(387):  at android.os.Handler.dispatchMessage(Handler.java:99)
03-31 16:05:57.597: E/AndroidRuntime(387):  at android.os.Looper.loop(Looper.java:123)
03-31 16:05:57.597: E/AndroidRuntime(387):  at android.app.ActivityThread.main(ActivityThread.java:4363)
03-31 16:05:57.597: E/AndroidRuntime(387):  at java.lang.reflect.Method.invokeNative(Native Method)
03-31 16:05:57.597: E/AndroidRuntime(387):  at java.lang.reflect.Method.invoke(Method.java:521)
03-31 16:05:57.597: E/AndroidRuntime(387):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
03-31 16:05:57.597: E/AndroidRuntime(387):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
03-31 16:05:57.597: E/AndroidRuntime(387):  at dalvik.system.NativeStart.main(Native Method)
03-31 16:05:57.597: E/AndroidRuntime(387): Caused by: java.lang.ClassNotFoundException: com.sam.daybook.DayBookActivity in loader dalvik.system.PathClassLoader@44e8d908
03-31 16:05:57.597: E/AndroidRuntime(387):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
03-31 16:05:57.597: E/AndroidRuntime(387):  at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
03-31 16:05:57.597: E/AndroidRuntime(387):  at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
03-31 16:05:57.597: E/AndroidRuntime(387):  at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
03-31 16:05:57.597: E/AndroidRuntime(387):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409)
03-31 16:05:57.597: E/AndroidRuntime(387):  ... 11 more
03-31 16:05:57.684: I/dalvikvm(387): threadid=7: reacting to signal 3
03-31 16:05:57.863: I/dalvikvm(387): Wrote stack trace to '/data/anr/traces.txt'
  • 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-06-01T09:57:53+00:00Added an answer on June 1, 2026 at 9:57 am

    Try adding the following lines to the Android manifest of our project

    <activity android:name="NAME_OF_YOUR_CLASS">
      <intent-filter>
         <action android:name="NAME_OF_YOUR_INTENT"/>
         <category android:name="android.intent.category.DEFAULT"/>
      </intent-filter>
    </activity>
    

    Then start your activity by using the following line

    startActivity(new Intent("NAME_OF_YOUR_INTENT"));

    be sure that the name of your intent in the above line and in the manifest is exactly the same.

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

Sidebar

Related Questions

Can someone figure out what this Line 1 Syntax error is? I am trying
Can somebody tell me how I can find out how many threads are in
simple question: How I can find out commands for a DLLImport in C#.Net and
Can anyone tell me how I can find out if an SPField object is
I know I can find out if a variable is null in Java using
Typically in Django I can find out what queries are being run against the
I can't seem to understand how I can find out what is erroring out
Is there any way I can find out in my app if the user
Is there a way that I can find out how many matches of a
Is there a way that i can find out what base tables are being

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.