Nsaya
I hate code!
Profile
Posts: 65
Reg: Jul 15, 2013
Kabul
2,400
02/02/14 12:37 PM (11 years ago)

need help in locating the problem

After importing the downloaded code, I run it on ecplise(emulator and my device in debugging mode). the following error happened. To be noted, I have used only interactive quiz and HTML doc and simple menu plugins. clicking on the menus to open my designed interactive quiz page, the following errors happen. since I am not code, I stuck what to do. I am appreciative of any assistance: Error log: 02-02 22:59:02.368: E/AndroidRuntime(537): FATAL EXCEPTION: main 02-02 22:59:02.368: E/AndroidRuntime(537): java.lang.NumberFormatException: Invalid long: "" 02-02 22:59:02.368: E/AndroidRuntime(537): at java.lang.Long.invalidLong(Long.java:125) 02-02 22:59:02.368: E/AndroidRuntime(537): at java.lang.Long.parseLong(Long.java:346) 02-02 22:59:02.368: E/AndroidRuntime(537): at android.graphics.Color.parseColor(Color.java:208) 02-02 22:59:02.368: E/AndroidRuntime(537): at com.jughrafia.BT_color.getColorFromHexString(BT_color.java:46) 02-02 22:59:02.368: E/AndroidRuntime(537): at com.jughrafia.BT_screen_quiz.onCreateView(BT_screen_quiz.java:246) 02-02 22:59:02.368: E/AndroidRuntime(537): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:795) 02-02 22:59:02.368: E/AndroidRuntime(537): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:998) 02-02 22:59:02.368: E/AndroidRuntime(537): at android.app.BackStackRecord.run(BackStackRecord.java:622) 02-02 22:59:02.368: E/AndroidRuntime(537): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1330) 02-02 22:59:02.368: E/AndroidRuntime(537): at android.app.FragmentManagerImpl$1.run(FragmentManager.java:417) 02-02 22:59:02.368: E/AndroidRuntime(537): at android.os.Handler.handleCallback(Handler.java:605) 02-02 22:59:02.368: E/AndroidRuntime(537): at android.os.Handler.dispatchMessage(Handler.java:92) 02-02 22:59:02.368: E/AndroidRuntime(537): at android.os.Looper.loop(Looper.java:137) 02-02 22:59:02.368: E/AndroidRuntime(537): at android.app.ActivityThread.main(ActivityThread.java:4340) 02-02 22:59:02.368: E/AndroidRuntime(537): at java.lang.reflect.Method.invokeNative(Native Method) 02-02 22:59:02.368: E/AndroidRuntime(537): at java.lang.reflect.Method.invoke(Method.java:511) 02-02 22:59:02.368: E/AndroidRuntime(537): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 02-02 22:59:02.368: E/AndroidRuntime(537): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 02-02 22:59:02.368: E/AndroidRuntime(537): at dalvik.system.NativeStart.main(Native Method)
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/02/14 01:14 PM (11 years ago)
The issue is at line 246 of the quiz java file. Not sure what's at that line, but seems to be trying to get the long numerical value of something
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/02/14 04:08 PM (11 years ago)
The BT_Color.java line gets me concerned. Do you have a color specified somewhere in the control panel for the quiz? If so, try removing it, or at least make sure it's specified correctly, and see if that helps. Mar
 
Nsaya
I hate code!
Profile
Posts: 65
Reg: Jul 15, 2013
Kabul
2,400
like
02/02/14 08:49 PM (11 years ago)
Thank you Chris1 and Mar, @Mar, Yes, the problem was with the colour. I just filled out every boxes of "quiz behaviour and layout", it get started working. thank you for assistance. NSaya
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/02/14 08:54 PM (11 years ago)
Just out of curiosity, what did you have specified for color? Were you using a hex value or a color name?
 
Nsaya
I hate code!
Profile
Posts: 65
Reg: Jul 15, 2013
Kabul
2,400
like
02/02/14 10:48 PM (11 years ago)
In the box for correct answer font color I forgot to either pick up my favorite color or type it correctly. I wanted to pick the color, but my internet went down, then wanted to type it, but didn't know the exact hex value. So postponed for the time that internet works to pick the exact color. In between I forgot to fill that box correctly. I had typed only "#" forgot to type the rest of the value. thank you once again for your assistance regards
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/02/14 10:53 PM (11 years ago)
Good to know for future debugging. Thanks for the feedback! Mark
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.