stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
01/31/13 03:24 PM (12 years ago)

LogCat help

Can someone please help with this entry from the logcat. I am running an app on a real device and hit an info icon in the upper right of the nav bar. This is supposed to take me to a menu screen nicknamed info. On the device I get a message that the app has stopped unexpectedly. Info is a simple menu with two rows of htm docs. This is the log cat from where the trouble begins, or should I say from when I tap on the icon in the nav bar. The first 20 or so lines seem ok, then trouble. Thanks in advance. Steve 01-31 17:17:56.419: W/ZZ(3300): BT_act_controller:handleRightNavButton 01-31 17:17:56.419: W/ZZ(3300): BT_act_controller:handleRightNavButton right button loads screen with itemId: "B82FAC4AB4E95578F02D9DB" 01-31 17:17:56.419: W/ZZ(3300): BT_application:getScreenDataByItemId with itemId: = "B82FAC4AB4E95578F02D9DB" 01-31 17:17:56.419: W/ZZ(3300): BT_application:getScreenDataByItemId with itemType: "BT_screen_menuListSimple" with nickname: "info" 01-31 17:17:56.419: W/ZZ(3300): BT_act_controller:loadScreenObject for screen with itemId: "B82FAC4AB4E95578F02D9DB" and itemNickname: "info" and itemType: "BT_screen_menuListSimple" 01-31 17:17:56.429: W/ZZ(3300): WB_screen_menuImage:onPause (BASE CLASS) 01-31 17:17:56.449: W/ZZ(3300): BT_activity_base:onCreate (BASE CLASS) 01-31 17:17:56.459: W/ZZ(3300): BT_screen_menuListSimple:onCreate 01-31 17:17:56.459: W/ZZ(3300): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: "info" 01-31 17:17:56.459: W/ZZ(3300): BT_viewUtilities:updateBackgroundColorsForScreen: setting background color to: "#FFCCFF" 01-31 17:17:56.459: W/ZZ(3300): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: "info" 01-31 17:17:56.469: W/ZZ(3300): BT_fileManager:deleteFile B82FAC4AB4E95578F02D9DB_screenData.txt 01-31 17:17:56.469: W/dalvikvm(3300): threadid=1: thread exiting with uncaught exception (group=0x40018560) 01-31 17:17:56.479: E/AndroidRuntime(3300): FATAL EXCEPTION: main 01-31 17:17:56.479: E/AndroidRuntime(3300): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.skyeventfinderandroid/com.skyeventfinderandroid.BT_screen_menuListSimple}: java.lang.NumberFormatException: #ffff00 01-31 17:17:56.479: E/AndroidRuntime(3300): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647) 01-31 17:17:56.479: E/AndroidRuntime(3300): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 01-31 17:17:56.479: E/AndroidRuntime(3300): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 01-31 17:17:56.479: E/AndroidRuntime(3300): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 01-31 17:17:56.479: E/AndroidRuntime(3300): at android.os.Handler.dispatchMessage(Handler.java:99) 01-31 17:17:56.479: E/AndroidRuntime(3300): at android.os.Looper.loop(Looper.java:130) 01-31 17:17:56.479: E/AndroidRuntime(3300): at android.app.ActivityThread.main(ActivityThread.java:3683) 01-31 17:17:56.479: E/AndroidRuntime(3300): at java.lang.reflect.Method.invokeNative(Native Method) 01-31 17:17:56.479: E/AndroidRuntime(3300): at java.lang.reflect.Method.invoke(Method.java:507) 01-31 17:17:56.479: E/AndroidRuntime(3300): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864) 01-31 17:17:56.479: E/AndroidRuntime(3300): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622) 01-31 17:17:56.479: E/AndroidRuntime(3300): at dalvik.system.NativeStart.main(Native Method) 01-31 17:17:56.479: E/AndroidRuntime(3300): Caused by: java.lang.NumberFormatException: #ffff00 01-31 17:17:56.479: E/AndroidRuntime(3300): at java.lang.Long.parse(Long.java:353) 01-31 17:17:56.479: E/AndroidRuntime(3300): at java.lang.Long.parseLong(Long.java:344) 01-31 17:17:56.479: E/AndroidRuntime(3300): at android.graphics.Color.parseColor(Color.java:208) 01-31 17:17:56.479: E/AndroidRuntime(3300): at com.skyeventfinderandroid.BT_color.getColorFromHexString(BT_color.java:46) 01-31 17:17:56.479: E/AndroidRuntime(3300): at com.skyeventfinderandroid.BT_screen_menuListSimple.onCreate(BT_screen_menuListSimple.java:187) 01-31 17:17:56.479: E/AndroidRuntime(3300): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 01-31 17:17:56.479: E/AndroidRuntime(3300): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611) 01-31 17:17:56.479: E/AndroidRuntime(3300): ... 11 more
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/31/13 04:20 PM (12 years ago)
For that menu list, do you have a color specified somewhere that's #ffff00? This is the line that's making me thing it might be that: 01-31 17:17:56.479: E/AndroidRuntime(3300): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.skyeventfinderandroid/com.skyeventfinderandroid.BT_screen_menuListSimple}: java.lang.NumberFormatException: #ffff00 Looks like there may be some additional spaces or something in the hex value that you specified on that screen. Mark
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/31/13 04:55 PM (12 years ago)
Mark, Yep, I wrote it as ## instead of # Thanks a lot!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/31/13 04:57 PM (12 years ago)
Sweet! Easy fix!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/31/13 11:46 PM (12 years ago)
Hooolly-ta-mo-lee, LogCat + @GoNorthwest = guessed about a one-character white space entry problem. The bar has been officially raised, all bow to Mark the Great. Sweet is an understatement.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/01/13 12:07 AM (12 years ago)
I love real cats and LogCat's!
 

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.