sdjustin
Apple Fan
Profile
Posts: 6
Reg: Nov 20, 2011
San Diego
3,860
12/06/12 09:05 PM (13 years ago)

Errors When trying to test out on Eclipse

I am having an issue I have opened my project in eclipse, I am them opening it with virtual device Google 8 It loads but I am getting an error that says the application has stopped unexpectedly. There are no errors in my script so I am not sure what is going on. Any ideas?? This is whats happening: [2012-12-06 20:41:17 - BT_activity_root] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.devynmediadudezone/.BT_activity_root } [2012-12-06 20:41:17 - BT_activity_root] ActivityManager: Warning: Activity not started, its current task has been brought to the front I can get it to work just fine in XCode but when I go to run it in eclispe is where I am having the isses.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/06/12 09:59 PM (13 years ago)
Hi @sdjustin, Can you post whatever you see in LogCat at the time of the crash? That'll help us tons in debugging. Mark
 
sdjustin
Apple Fan
Profile
Posts: 6
Reg: Nov 20, 2011
San Diego
3,860
like
12/06/12 10:11 PM (13 years ago)
This is what is there when it errors out: 12-06 21:10:14.821: W/ZZ(468): BT_activity_root:loadAppData cachedAppConfig.txt does not exist in the cache... 12-06 21:10:14.832: W/ZZ(468): BT_application: validateApplicationData 12-06 21:10:14.932: W/ZZ(468): BT_activity_root: application data appears to be valid JSON... 12-06 21:10:14.992: W/ZZ(468): BT_application: parseJSONData 12-06 21:10:15.112: W/ZZ(468): BT_application: parsing core settings... 12-06 21:10:15.162: W/ZZ(468): BT_application: parsing themes... 12-06 21:10:15.162: W/ZZ(468): BT_application: parsing tabs... 12-06 21:10:15.162: W/ZZ(468): BT_application: parsing screens... 12-06 21:10:15.162: W/ZZ(468): BT_application:parseJSONData done parsing application data 12-06 21:10:15.192: W/ZZ(468): BT_activity_root:transitionToAppHomeScreen 12-06 21:10:15.192: W/ZZ(468): BT_activity_root:transitionToAppHomeScreen non-tabbed home screen. 12-06 21:10:15.222: W/ZZ(468): BT_application: getHomeScreen 12-06 21:10:15.482: W/ZZ(468): BT_activity_base:onCreate (BASE CLASS) 12-06 21:10:15.552: W/ZZ(468): BT_screen_menuList:onCreate 12-06 21:10:15.552: W/ZZ(468): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: "Dudezone.com" 12-06 21:10:15.552: W/ZZ(468): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: "Dudezone.com" 12-06 21:10:15.622: W/ZZ(468): BT_screen_menuList:backgroundWorkerThread using image from cache: "splashscreen.jpg" 12-06 21:10:15.772: D/dalvikvm(468): GC_EXTERNAL_ALLOC freed 3955 objects / 286440 bytes in 125ms 12-06 21:10:15.792: D/AndroidRuntime(468): Shutting down VM 12-06 21:10:15.792: W/dalvikvm(468): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 12-06 21:10:15.812: E/AndroidRuntime(468): FATAL EXCEPTION: main 12-06 21:10:15.812: E/AndroidRuntime(468): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.devynmediadudezone/com.devynmediadudezone.BT_screen_menuButtons}: java.lang.IllegalArgumentException: Unknown color 12-06 21:10:15.812: E/AndroidRuntime(468): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 12-06 21:10:15.812: E/AndroidRuntime(468): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 12-06 21:10:15.812: E/AndroidRuntime(468): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 12-06 21:10:15.812: E/AndroidRuntime(468): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 12-06 21:10:15.812: E/AndroidRuntime(468): at android.os.Handler.dispatchMessage(Handler.java:99) 12-06 21:10:15.812: E/AndroidRuntime(468): at android.os.Looper.loop(Looper.java:123) 12-06 21:10:15.812: E/AndroidRuntime(468): at android.app.ActivityThread.main(ActivityThread.java:4627) 12-06 21:10:15.812: E/AndroidRuntime(468): at java.lang.reflect.Method.invokeNative(Native Method) 12-06 21:10:15.812: E/AndroidRuntime(468): at java.lang.reflect.Method.invoke(Method.java:521) 12-06 21:10:15.812: E/AndroidRuntime(468): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 12-06 21:10:15.812: E/AndroidRuntime(468): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 12-06 21:10:15.812: E/AndroidRuntime(468): at dalvik.system.NativeStart.main(Native Method) 12-06 21:10:15.812: E/AndroidRuntime(468): Caused by: java.lang.IllegalArgumentException: Unknown color 12-06 21:10:15.812: E/AndroidRuntime(468): at android.graphics.Color.parseColor(Color.java:221) 12-06 21:10:15.812: E/AndroidRuntime(468): at com.devynmediadudezone.BT_color.getColorFromHexString(BT_color.java:46) 12-06 21:10:15.812: E/AndroidRuntime(468): at com.devynmediadudezone.BT_viewUtilities.getNavBarForScreen(BT_viewUtilities.java:101) 12-06 21:10:15.812: E/AndroidRuntime(468): at com.devynmediadudezone.BT_screen_menuButtons.onCreate(BT_screen_menuButtons.java:131) 12-06 21:10:15.812: E/AndroidRuntime(468): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 12-06 21:10:15.812: E/AndroidRuntime(468): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 12-06 21:10:15.812: E/AndroidRuntime(468): ... 11 more 12-06 21:10:19.373: I/Process(468): Sending signal. PID: 468 SIG: 9
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/06/12 10:30 PM (13 years ago)
This line suggests that you have an unknown color specified in your Button Menu screen: ComponentInfo{com.devynmediadudezone/com.devynmediadudezone.BT_screen_menuButtons}: java.lang.IllegalArgumentException: Unknown color Colors need to be hex values, and need to have a # in front of a six digit number. So, it looks like this: #000000 or #FFFFFF for Black and White, respectively. Here's a start of a list of colors: http://www.w3schools.com/html/html_colors.asp Check that out in the screen for your Button Menu, and let us know what happens! Mark
 
sdjustin
Apple Fan
Profile
Posts: 6
Reg: Nov 20, 2011
San Diego
3,860
like
12/06/12 10:42 PM (13 years ago)
So I changed it and still errors out this is what I am getting now: 12-06 21:39:49.170: D/dalvikvm(300): GC_EXTERNAL_ALLOC freed 3984 objects / 288440 bytes in 129ms 12-06 21:39:49.170: D/AndroidRuntime(300): Shutting down VM 12-06 21:39:49.170: W/dalvikvm(300): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 12-06 21:39:49.190: E/AndroidRuntime(300): FATAL EXCEPTION: main 12-06 21:39:49.190: E/AndroidRuntime(300): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.devynmediadudezone/com.devynmediadudezone.BT_screen_menuButtons}: java.lang.IllegalArgumentException: Unknown color 12-06 21:39:49.190: E/AndroidRuntime(300): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 12-06 21:39:49.190: E/AndroidRuntime(300): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 12-06 21:39:49.190: E/AndroidRuntime(300): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 12-06 21:39:49.190: E/AndroidRuntime(300): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 12-06 21:39:49.190: E/AndroidRuntime(300): at android.os.Handler.dispatchMessage(Handler.java:99) 12-06 21:39:49.190: E/AndroidRuntime(300): at android.os.Looper.loop(Looper.java:123) 12-06 21:39:49.190: E/AndroidRuntime(300): at android.app.ActivityThread.main(ActivityThread.java:4627) 12-06 21:39:49.190: E/AndroidRuntime(300): at java.lang.reflect.Method.invokeNative(Native Method) 12-06 21:39:49.190: E/AndroidRuntime(300): at java.lang.reflect.Method.invoke(Method.java:521) 12-06 21:39:49.190: E/AndroidRuntime(300): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 12-06 21:39:49.190: E/AndroidRuntime(300): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 12-06 21:39:49.190: E/AndroidRuntime(300): at dalvik.system.NativeStart.main(Native Method) 12-06 21:39:49.190: E/AndroidRuntime(300): Caused by: java.lang.IllegalArgumentException: Unknown color 12-06 21:39:49.190: E/AndroidRuntime(300): at android.graphics.Color.parseColor(Color.java:221) 12-06 21:39:49.190: E/AndroidRuntime(300): at com.devynmediadudezone.BT_color.getColorFromHexString(BT_color.java:46) 12-06 21:39:49.190: E/AndroidRuntime(300): at com.devynmediadudezone.BT_viewUtilities.getNavBarForScreen(BT_viewUtilities.java:101) 12-06 21:39:49.190: E/AndroidRuntime(300): at com.devynmediadudezone.BT_screen_menuButtons.onCreate(BT_screen_menuButtons.java:131) 12-06 21:39:49.190: E/AndroidRuntime(300): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 12-06 21:39:49.190: E/AndroidRuntime(300): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 12-06 21:39:49.190: E/AndroidRuntime(300): ... 11 more 12-06 21:39:51.330: W/ZZ(300): devynmediadudezone_appDelegate:SoundEffectLoader:doInBackground initSoundEffects 12-06 21:39:51.340: W/ZZ(300): devynmediadudezone_appDelegate:SoundEffectLoader:doInBackground initSoundEffects DISABLED
 
sdjustin
Apple Fan
Profile
Posts: 6
Reg: Nov 20, 2011
San Diego
3,860
like
12/06/12 10:46 PM (13 years ago)
done
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/06/12 11:07 PM (13 years ago)
In the assets folder of your download package, there is a file called BT_Config.txt. In that file is a line called dataURL. Can you send that (or the whole file) to me at MrkFleming at gmail dot com so I can check it out? Also...try syncing your BT copy of the configuration data with your local copy, and then running the app again. Here's a video that shows how: Quick Clips : Sync Your Configuration Data File https://www.youtube.com/watch?v=Sp2vL1XCPC0 Hang in there...we'll get this nailed! Mark
 
sdjustin
Apple Fan
Profile
Posts: 6
Reg: Nov 20, 2011
San Diego
3,860
like
12/06/12 11:22 PM (13 years ago)
Thanks! I have emailed and synced my configuration data
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/06/12 11:25 PM (13 years ago)
Just sent you a response! You have this line in your config file: "navBarBackgroundColor":"ffffff" It needs to have a # in front of the FFFFFF. This can be fixed in your control panel for that screen. Mark
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
12/07/12 10:33 AM (13 years ago)
Mark, great job on diagnosing this! You are a one in a million.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/07/12 10:35 AM (13 years ago)
Fortunately between LogCat and David's code comments, there are lots of clues on what's going on! Turns out the missing # was indeed the issue.
 
Aaron636r
Aspiring developer
Profile
Posts: 246
Reg: Mar 08, 2011
California
3,160
like
12/07/12 12:03 PM (13 years ago)
Well Done 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.