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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:33:36+00:00 2026-06-02T19:33:36+00:00

I was editing anandroid app that was based off of a similar one I

  • 0

I was editing anandroid app that was based off of a similar one I had done before that had worked before. This time its not working but I don’t know why.

App error:

The Application Buchanan Java Quiz Game (process hu.csc395.javaquizgame) has stopped unexpectedly Please Try again. 

My log shows this:

04-28 04:31:40.326: D/AndroidRuntime(337): Shutting down VM
04-28 04:31:40.326: W/dalvikvm(337): threadid=1: thread exiting with uncaught exception    (group=0x40015560)
04-28 04:31:40.395: E/AndroidRuntime(337): FATAL EXCEPTION: main
04-28 04:31:40.395: E/AndroidRuntime(337): java.lang.RuntimeException: Unable to start activity      ComponentInfo{hu.csc395.javaquizgame/hu.csc395.javaquizgame.Buchanan_JavaQuizGameActivity}:    java.lang.IllegalArgumentException

I don’t know where these are located so maybe I’m just missing it.

Full Logcat with the exception:

    04-28 04:31:40.326: D/AndroidRuntime(337): Shutting down VM
    04-28 04:31:40.326: W/dalvikvm(337): threadid=1: thread exiting with uncaught exception (group=0x40015560)
    04-28 04:31:40.395: E/AndroidRuntime(337): FATAL EXCEPTION: main
04-28 04:31:40.395: E/AndroidRuntime(337): java.lang.RuntimeException: Unable to start activity ComponentInfo{hu.csc395.javaquizgame/hu.csc395.javaquizgame.Buchanan_JavaQuizGameActivity}: java.lang.IllegalArgumentException
    04-28 04:31:40.395: E/AndroidRuntime(337):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
    04-28 04:31:40.395: E/AndroidRuntime(337):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
   04-28 04:31:40.395: E/AndroidRuntime(337):   at android.app.ActivityThread.access$1500(ActivityThread.java:117)
   04-28 04:31:40.395: E/AndroidRuntime(337):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
   04-28 04:31:40.395: E/AndroidRuntime(337):   at android.os.Handler.dispatchMessage(Handler.java:99)
   04-28 04:31:40.395: E/AndroidRuntime(337):   at android.os.Looper.loop(Looper.java:123)
   04-28 04:31:40.395: E/AndroidRuntime(337):   at android.app.ActivityThread.main(ActivityThread.java:3683)
   04-28 04:31:40.395: E/AndroidRuntime(337):   at java.lang.reflect.Method.invokeNative(Native Method)
   04-28 04:31:40.395: E/AndroidRuntime(337):   at java.lang.reflect.Method.invoke(Method.java:507)
   04-28 04:31:40.395: E/AndroidRuntime(337):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
   04-28 04:31:40.395: E/AndroidRuntime(337):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
   04-28 04:31:40.395: E/AndroidRuntime(337):   at dalvik.system.NativeStart.main(Native Method)
   04-28 04:31:40.395: E/AndroidRuntime(337): Caused by: java.lang.IllegalArgumentException
   04-28 04:31:40.395: E/AndroidRuntime(337):   at java.util.Random.nextInt(Random.java:186)   
   04-28 04:31:40.395: E/AndroidRuntime(337):   at hu.csc395.javaquizgame.Buchanan_JavaQuizGameActivity.resetQuiz(Buchanan_JavaQuizGameActivity.java:121)
   04-28 04:31:40.395: E/AndroidRuntime(337):   at hu.csc395.javaquizgame.Buchanan_JavaQuizGameActivity.onCreate(Buchanan_JavaQuizGameActivity.java:85)
   04-28 04:31:40.395: E/AndroidRuntime(337):   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
   04-28 04:31:40.395: E/AndroidRuntime(337):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
   04-28 04:31:40.395: E/AndroidRuntime(337):   ... 11 more
   04-28 04:34:37.995: I/Process(337): Sending signal. PID: 337 SIG: 9

And my console shows everything running normally until:

  [2012-04-28 01:48:17 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error
[2012-04-28 01:48:17 - Buchanan_JavaQuizGame] New emulator found: emulator-5554
  • 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-02T19:33:38+00:00Added an answer on June 2, 2026 at 7:33 pm

    Somewhere in your code you use the nextInt method of the Random class and I think you pass it a negative integer and this will throw the IllegalArgumentException(it requires that the method parameter is positive).

    This happens in your resetQuiz method so check there what you do in your code.

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

Sidebar

Related Questions

I am editing the code of an android app that is making GPS calls
I've been playing around with this for some time now and am hoping that
I am developing one android application and in that app I am trying to
Editing this code here on Stackoverflow and I'm really near to get the result
When editing a resource in the Visual Studio resource view, I find that a
My app shows a list of 9 categories and each category displays a Gallery-based
I'm pretty frustrated with this one. I have a dev web server running a
I am working on a video editing app and on my Wildfire the camera
I'm new to Eclipse/Android development so I'm hoping this is something basic that I'm
maybe you can help me out. I'm working on an Android app project that

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.