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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:04:36+00:00 2026-05-18T22:04:36+00:00

I have problem with changing activity. I added the line to AndroidManifest and it

  • 0

I have problem with changing activity. I added the line to AndroidManifest and it doesn’t work. It means, there’s error after click of “NowaGra” ImageButton. ( Error – “Sorry !, The Application Gra_Milionerzy(process gra_Milionerzy.Gra) has stopped unexpectdelly. Please try again )

It’s main Activity ( Gra – Game in English )

    package gra_Milionerzy.Gra;

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

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


        /*   Menu Gry */  

          ImageButton Nowa_Gra = (ImageButton)this.findViewById(R.id.nowa_gra);
          Nowa_Gra.setOnClickListener(new OnClickListener()
            {
      public void onClick(View v)
       {
       Intent intent = new Intent(Gra.this, NowaGra.class);
        startActivity(intent);   
          }      

            });


          ImageButton Profile = (ImageButton)this.findViewById(R.id.profile);
          Profile.setOnClickListener(new OnClickListener()
            {
      public void onClick(View arg0)
       {
        finish();
       }
            });

          ImageButton OAutorze = (ImageButton)this.findViewById(R.id.o_autorze);
          OAutorze.setOnClickListener(new OnClickListener()
            {
      public void onClick(View arg0)
       {
        finish();
       }
            });

          ImageButton Ustawienia = (ImageButton)this.findViewById(R.id.ustawienia);
          Ustawienia.setOnClickListener(new OnClickListener()
            {
      public void onClick(View arg0)
       {
        finish();
       }
            });

          /*  Koniec Menu Gry  */


          /*  Kola Ratunkowe  */




    }
}

and here’s NowaGra ( NewGame ;P )

package gra_Milionerzy.Gra;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class NowaGra extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
       finish();

        /*   Kola Ratunkowe */  





    }
}

and AndroidManifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="gra_Milionerzy.Gra"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".Glowna"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
     <activity android:name=".NowaGra"></activity>
    </application>


<uses-sdk android:minSdkVersion="1"></uses-sdk>
</manifest> 

plus LogCat

12-30 12:43:06.738: ERROR/AndroidRuntime(1379): FATAL EXCEPTION: main
12-30 12:43:06.738: ERROR/AndroidRuntime(1379): android.content.ActivityNotFoundException: Unable to find explicit activity class {gra_Milionerzy.Gra/gra_Milionerzy.Gra.NowaGra}; have you declared this activity in your AndroidManifest.xml?
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at android.app.Activity.startActivityForResult(Activity.java:2817)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at android.app.Activity.startActivity(Activity.java:2923)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at gra_Milionerzy.Gra.Gra$1.onClick(Gra.java:25)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at android.view.View.performClick(View.java:2408)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at android.view.View$PerformClick.run(View.java:8816)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at android.os.Handler.handleCallback(Handler.java:587)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at android.os.Handler.dispatchMessage(Handler.java:92)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at android.os.Looper.loop(Looper.java:123)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at android.app.ActivityThread.main(ActivityThread.java:4627)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at java.lang.reflect.Method.invokeNative(Native Method)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at java.lang.reflect.Method.invoke(Method.java:521)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-30 12:43:06.738: ERROR/AndroidRuntime(1379):     at dalvik.system.NativeStart.main(Native Method)

And what I’m doing wrong ? Any ideas ?

______________________–
ANWSER – The bad wrote in AndroidManifest

  • 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-18T22:04:37+00:00Added an answer on May 18, 2026 at 10:04 pm

    Run it in debug if using eclipse and it will tend to halt on an exception. You can inspect the exception for a detailed message. Or, check logcat, which you can add as a view in eclipse to your perspective if not already visible to show the stack trace.

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

Sidebar

Related Questions

I have a small problem. In my activity I have an edittext and a
Wondering if you can help me out. I seem to have a problem changing
I have problem in some JavaScript that I am writing where the Switch statement
I have problem with return statment >.< I want to store all magazine names
I have problem with starting processes in impersonated context in ASP.NET 2.0. I am
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have problem with ActionLink. I'd like to pass to my ActionLink parameter for
I have problem when I try insert some data to Informix TEXT column via
I do not have problem as such but I am quite new to Ruby.
I have a problem using the Java search function in Eclipse on a particular

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.