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

  • Home
  • SEARCH
  • 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 8559283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:00:21+00:00 2026-06-11T16:00:21+00:00

Im trying to make a simple app, I wanted to add a new Activity

  • 0

Im trying to make a simple app, I wanted to add a new Activity but whenI run my app on the emulator (Eclipse don’t give me any error) it just crashes.

This is my logcat:

09-21 05:18:13.066: I/Process(255): Sending signal. PID: 255 SIG: 9
09-21 05:18:13.106: I/ActivityManager(52): Process com.example.proyecto_1 (pid 255) has died.
09-21 05:18:13.172: I/UsageStats(52): Unexpected resume of com.android.launcher while     already resumed in com.example.proyecto_1
09-21 05:18:13.402: E/gralloc(52): [unregister] handle 0x14d478 still locked (state=40000001)
09-21 05:18:13.462: W/InputManagerService(52): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44de1dc8
09-21 05:18:16.193: W/KeyCharacterMap(107): No keyboard for id 0
09-21 05:18:16.203: W/KeyCharacterMap(107): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
09-21 05:18:18.594: I/ActivityManager(52): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.proyecto_1/.MainActivity }
09-21 05:18:18.673: I/ActivityManager(52): Start proc com.example.proyecto_1 for activity com.example.proyecto_1/.MainActivity: pid=261 uid=10028 gids={}
09-21 05:18:18.913: D/ddm-heap(261): Got feature list request
09-21 05:18:19.083: D/AndroidRuntime(261): Shutting down VM
09-21 05:18:19.123: W/dalvikvm(261): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
09-21 05:18:19.123: E/AndroidRuntime(261): Uncaught handler: thread main exiting due to uncaught exception
09-21 05:18:19.233: E/AndroidRuntime(261): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.proyecto_1/com.example.proyecto_1.MainActivity}: java.lang.ClassNotFoundException: com.example.proyecto_1.MainActivity in loader dalvik.system.PathClassLoader@4001b500
09-21 05:18:19.233: E/AndroidRuntime(261):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
09-21 05:18:19.233: E/AndroidRuntime(261):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
09-21 05:18:19.233: E/AndroidRuntime(261):  at android.app.ActivityThread.access$2200(ActivityThread.java:119)
09-21 05:18:19.233: E/AndroidRuntime(261):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
09-21 05:18:19.233: E/AndroidRuntime(261):  at android.os.Handler.dispatchMessage(Handler.java:99)
09-21 05:18:19.233: E/AndroidRuntime(261):  at android.os.Looper.loop(Looper.java:123)
09-21 05:18:19.233: E/AndroidRuntime(261):  at android.app.ActivityThread.main(ActivityThread.java:4363)
09-21 05:18:19.233: E/AndroidRuntime(261):  at java.lang.reflect.Method.invokeNative(Native Method)
09-21 05:18:19.233: E/AndroidRuntime(261):  at java.lang.reflect.Method.invoke(Method.java:521)
09-21 05:18:19.233: E/AndroidRuntime(261):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
09-21 05:18:19.233: E/AndroidRuntime(261):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
09-21 05:18:19.233: E/AndroidRuntime(261):  at dalvik.system.NativeStart.main(Native Method)
09-21 05:18:19.233: E/AndroidRuntime(261): Caused by: java.lang.ClassNotFoundException: com.example.proyecto_1.MainActivity in loader dalvik.system.PathClassLoader@4001b500
09-21 05:18:19.233: E/AndroidRuntime(261):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
09-21 05:18:19.233: E/AndroidRuntime(261):  at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
09-21 05:18:19.233: E/AndroidRuntime(261):  at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
09-21 05:18:19.233: E/AndroidRuntime(261):  at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
09-21 05:18:19.233: E/AndroidRuntime(261):  at     android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409)
09-21 05:18:19.233: E/AndroidRuntime(261):  ... 11 more
09-21 05:18:19.314: I/Process(52): Sending signal. PID: 261 SIG: 3
09-21 05:18:19.314: I/dalvikvm(261): threadid=7: reacting to signal 3
09-21 05:18:19.333: I/dalvikvm(261): Wrote stack trace to '/data/anr/traces.txt'
09-21 05:18:21.073: I/Process(261): Sending signal. PID: 261 SIG: 9
09-21 05:18:21.093: I/ActivityManager(52): Process com.example.proyecto_1 (pid 261) has died.
09-21 05:18:21.114: I/UsageStats(52): Unexpected resume of com.android.launcher while already resumed in com.example.proyecto_1
09-21 05:18:21.263: W/InputManagerService(52): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44dae108

and this is my MainActivity:

package com.example.proyecto_1;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    Button button1 = (Button) findViewById(R.id.button1);
    button1.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            Intent test_scrn1 = new Intent(MainActivity.this, TestScrn1.class);
            startActivity(test_scrn1);
        }
    });

    }
}

And finally this is my AndroidManifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.proyecto_1"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="7"
    android:targetSdkVersion="15" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" android:hasCode="false" android:allowTaskReparenting="false">
    <activity
        android:name=".MainActivity"
        android:label="@string/title_activity_main" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name="TestScrn1"></activity>
</application>

I don’t know what I’m doing wrong, I’ve look for a solution but I just can’t, please, help me.

  • 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-11T16:00:23+00:00Added an answer on June 11, 2026 at 4:00 pm

    There are so many possibilities for your error .

    • First Put (.)DOT leading your TestScrn1 Activity declaration in
      android.
    • Make sure that android:hasCode is not set to false in your manifest
      file.
    • Clean Your Project and Run Again.
    • Tick Project > Build Automatically .
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am fairly new to iOS development and trying make a simple app which
I'm trying to make a simple drawing app in c++, but i'm having trouble
I'm new to GWT and trying to make a simple app (like a small
Recently started programming Android Java (Eclipse), Im trying to make a simple reader app
I'm new at android developing. I'm trying to make a simple drumset app, when
I'm new to WPF and I'm trying to make a simple app, a stopwatch.
Im trying to make a simple quote app, but every time I hit my
I'm trying to make a simple app that sits on the Mac OSX menu
I'm trying to make a very simple updater app that reads current version.txt file
Trying to make simple minesweeper game in python, but have one problem. I have

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.