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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:19:50+00:00 2026-06-05T19:19:50+00:00

public void openOptions() { Intent intent=new Intent(this,Game.class); //intent.putExtra(razmer, level); startActivity(intent); // Intent intent=new Intent(this,Options.class);

  • 0
public void openOptions()
{
    Intent intent=new Intent(this,Game.class);
    //intent.putExtra("razmer", level);
   startActivity(intent);

 // Intent intent=new Intent(this,Options.class);
 // intent.putExtra("level", level);
 // startActivity(intent);
}

Output error log:

    06-14 10:27:15.049: W/dalvikvm(539): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
    06-14 10:27:15.078: E/AndroidRuntime(539): FATAL EXCEPTION: main
    06-14 10:27:15.078: E/AndroidRuntime(539): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{your.KrestikiNolikiActivity.namespace/your.KrestikiNolikiActivity.namespace.Game}: 
    java.lang.InstantiationException: can't instantiate class your.KrestikiNolikiActivity.namespace.Game; no empty constructor
    06-14 10:27:15.078: E/AndroidRuntime(539):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at android.app.ActivityThread.access$600(ActivityThread.java:123)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at android.os.Handler.dispatchMessage(Handler.java:99)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at android.os.Looper.loop(Looper.java:137)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at android.app.ActivityThread.main(ActivityThread.java:4424)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at java.lang.reflect.Method.invokeNative(Native Method)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at java.lang.reflect.Method.invoke(Method.java:511)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at dalvik.system.NativeStart.main(Native Method)
    06-14 10:27:15.078: E/AndroidRuntime(539): Caused by: java.lang.InstantiationException: can't instantiate class your.KrestikiNolikiActivity.namespace.Game; no empty constructor
    06-14 10:27:15.078: E/AndroidRuntime(539):  at java.lang.Class.newInstanceImpl(Native Method)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at java.lang.Class.newInstance(Class.java:1319)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
    06-14 10:27:15.078: E/AndroidRuntime(539):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
    06-14 10:27:15.078: E/AndroidRuntime(539):  ... 11 more
  • 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-05T19:19:51+00:00Added an answer on June 5, 2026 at 7:19 pm

    You need to add a blank Constructor to your Game class.

    i.e.

    public class Game extends Activity {
    
        public Game(){
    
        }
    
    }
    

    So this is happening because you have overridden the constructor

    i.e.

    public Game(String something){
        this.something = something;
    }
    

    You shouldn’t do this in Activities and it will have no effect anyway as you can’t instantiate an Activity using the constructor

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

Sidebar

Related Questions

public void onBackPressed() { Intent setIntent = new Intent(this,xxxxx.class); startActivity(setIntent); return; } I call
public void createpass() { //set up dialog final Dialog dialog = new Dialog(App.this); dialog.setContentView(R.layout.createpass);
public void responsePost(Editable editable) { TableLayout chatbox = (TableLayout)findViewById(R.id.chatbox); TableRow tr1 = new TableRow(this);
public void Save() { XmlSerializer Serializer = new XmlSerializer(typeof(DatabaseInformation)); /* A first chance exception
public void openReport() { try { HashMap params = new HashMap(); params.put(aapor, 19); JasperReport
public class UploadHandler : IHttpHandler { public void ProcessRequest(HttpContext context) { ... // Create
[TestInitialize()] public void MyTestInitialize() { XmlTextWriter writer = new XmlTextWriter(DataFile.xml, Encoding.UTF8); writer.Formatting = Formatting.Indented;
public abstract class Master { public void printForAllMethodsInSubClass() { System.out.println (Printing before subclass method
public void consumeResponse(OmwListResponse<T> response) { synchronized (response.getResultList()) { // XXX this isn't synchronized safely
public void setIntersection(LinkList list1, LinkList list2) { LinkList list4 = new LinkList(); Node a

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.