Discussion Forums  >  Uncategorized

Replies: 4    Views: 1064

Cyrus_8888
I hate code!
Profile
Posts: 151
Reg: Dec 24, 2011
Sydney
1,610
01/12/12 07:02 PM (14 years ago)

Problem with compiling buzztouch project to run android emulator

Big struggling to run my project on Android emulator, source code been downloaded from buzztouch, but when I compile it and to run on emulator the message display Sorry, the application XXXXX (process com.XXX) has stopped unexpectedly. Please try again. The emulator opens fine, but when I try to open my project, it just won't let me. Console [2012-01-13 12:40:32 - Tier One] Android Launch! [2012-01-13 12:40:32 - Tier One] adb is running normally. [2012-01-13 12:40:32 - Tier One] Performing com.tieronecafe.BT_activity_root activity launch [2012-01-13 12:40:32 - Tier One] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'Google22' [2012-01-13 12:40:33 - Tier One] Application already deployed. No need to reinstall. [2012-01-13 12:40:33 - Tier One] Starting activity com.tieronecafe.BT_activity_root on device emulator-5554 [2012-01-13 12:40:34 - Tier One] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.tieronecafe/.BT_activity_root } LogCat 01-13 12:47:48.197: W/ZZ(494): Creating tieronecafe_appDelegate object. 01-13 12:47:48.197: W/ZZ(494): tieronecafe_appDelegate:loadAudioPlayer 01-13 12:47:48.207: W/ZZ(494): BT_application: Creating root-app object. 01-13 12:47:48.218: W/ZZ(494): BT_device: Creating root-device object. 01-13 12:47:48.218: W/ZZ(494): BT_device: This device uses an Android display density of: 240dpi (dots per inch) 01-13 12:47:48.227: W/ZZ(494): BT_device: This device can take pictures. 01-13 12:47:48.227: W/ZZ(494): BT_device: This device can take videos. 01-13 12:47:48.227: W/ZZ(494): BT_device: This device can send emails. 01-13 12:47:48.237: W/ZZ(494): BT_device: This device is GPS capable. 01-13 12:47:48.237: W/ZZ(494): BT_user: Creating root-user object. 01-13 12:47:48.278: W/ZZ(494): BT_activity_root:onCreate 01-13 12:47:48.338: W/ZZ(494): BT_device:updateDeviceConnectionType: ConnectionType: CELL 01-13 12:47:48.338: W/ZZ(494): BT_device:updateDeviceSize This device has a screen size of: 480 (width) x 800 (height). 01-13 12:47:48.338: W/ZZ(494): BT_device:updateDeviceSize This application considers this to be a small device 01-13 12:47:48.338: W/ZZ(494): BT_device:updateDeviceSize This device is in portrait orientation. 01-13 12:47:48.378: W/ZZ(494): BT_activity_root:loadAppData loading BT_config.txt from /assests folder in Eclipse project... 01-13 12:47:48.598: W/ZZ(494): BT_fileManager: readTextFileFromAssets: /BT_config.txt 01-13 12:47:48.598: I/global(494): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. 01-13 12:47:48.628: W/ZZ(494): BT_activity_root:loadAppData loaded BT_config.txt from /assets folder successfully... 01-13 12:47:48.628: W/ZZ(494): BT_application: getDataURLFromAppData 01-13 12:47:48.768: W/ZZ(494): BT_activity_root:loadAppData BT_config.txt file does use a dataURL for remote updates... 01-13 12:47:48.768: W/ZZ(494): BT_activity_root:loadAppData cachedAppConfig.txt does not exist in the cache... 01-13 12:47:48.808: W/ZZ(494): BT_application: validateApplicationData 01-13 12:47:49.128: D/dalvikvm(494): GC_FOR_MALLOC freed 3836 objects / 321592 bytes in 203ms 01-13 12:47:49.147: W/ZZ(494): BT_activity_root: application data appears to be valid JSON... 01-13 12:47:49.147: W/ZZ(494): BT_application: parseJSONData 01-13 12:47:49.177: W/ZZ(494): BT_application: parsing core settings... 01-13 12:47:49.177: W/ZZ(494): BT_application: parsing themes... 01-13 12:47:49.177: W/ZZ(494): BT_application: parsing tabs... 01-13 12:47:49.177: W/ZZ(494): BT_application: parsing screens... 01-13 12:47:49.187: W/ZZ(494): BT_activity_root:transitionToAppHomeScreen 01-13 12:47:49.187: W/ZZ(494): BT_activity_root:transitionToAppHomeScreen tabbed interface (BT_activity_root_tabs). 01-13 12:47:49.248: W/ZZ(494): BT_activity_root:onCreate 01-13 12:47:49.418: W/ZZ(494): BT_device:updateDeviceConnectionType: ConnectionType: CELL 01-13 12:47:49.418: W/ZZ(494): BT_device:updateDeviceSize This device has a screen size of: 480 (width) x 800 (height). 01-13 12:47:49.418: W/ZZ(494): BT_device:updateDeviceSize This application considers this to be a small device 01-13 12:47:49.418: W/ZZ(494): BT_device:updateDeviceSize This device is in portrait orientation. 01-13 12:47:49.418: W/ZZ(494): tieronecafe_appDelegate:SoundEffectLoader:doInBackground initSoundEffects 01-13 12:47:49.468: W/ZZ(494): tieronecafe_appDelegate:SoundEffectLoader:doInBackground initSoundEffects DISABLED 01-13 12:47:49.468: W/ZZ(494): BT_activity_root:buildInterfaceUsingAppData.. 01-13 12:47:49.478: W/ZZ(494): BT_activity_root: setting up a tabbed interface. 01-13 12:47:49.738: W/ZZ(494): BT_application:getScreenDataByItemId 451E3E95F506CAB88E11B2C 01-13 12:47:49.738: W/ZZ(494): BT_application:getScreenDataByItemId screenType is BT_screen_menuList for screen with nickname: My Home Screen Menu 01-13 12:47:49.738: W/ZZ(494): BT_activity_root:creating tab 0 with item type: BT_screen_menuList and nickname: My Home Screen Menu 01-13 12:47:49.788: W/ZZ(494): BT_screen_menuList:onCreate 01-13 12:47:49.798: W/ZZ(494): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: My Home Screen Menu 01-13 12:47:49.798: W/ZZ(494): BT_viewUtilities:updateBackgroundColorsForScreen: setting background color to: #000000 01-13 12:47:49.818: W/ZZ(494): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: My Home Screen Menu 01-13 12:47:49.818: W/ZZ(494): BT_viewUtilities:getNavBarForScreen: setting nav-bar color to: #0000000 01-13 12:47:49.818: D/AndroidRuntime(494): Shutting down VM 01-13 12:47:49.818: W/dalvikvm(494): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 01-13 12:47:49.828: W/ZZ(494): BT_screen_menuList:backgroundWorkerThread this screen does not use a background image 01-13 12:47:49.838: E/AndroidRuntime(494): FATAL EXCEPTION: main 01-13 12:47:49.838: E/AndroidRuntime(494): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tieronecafe/com.tieronecafe.BT_screen_menuList}: java.lang.IllegalArgumentException: Unknown color 01-13 12:47:49.838: E/AndroidRuntime(494): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 01-13 12:47:49.838: E/AndroidRuntime(494): at android.app.ActivityThread.startActivityNow(ActivityThread.java:2503) 01-13 12:47:49.838: E/AndroidRuntime(494): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127) 01-13 12:47:49.838: E/AndroidRuntime(494): at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339) 01-13 12:47:49.838: E/AndroidRuntime(494): at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:651) 01-13 12:47:49.838: E/AndroidRuntime(494): at android.widget.TabHost.setCurrentTab(TabHost.java:323) 01-13 12:47:49.838: E/AndroidRuntime(494): at android.widget.TabHost.addTab(TabHost.java:213) 01-13 12:47:49.838: E/AndroidRuntime(494): at com.tieronecafe.BT_activity_root_tabs$1.run(BT_activity_root_tabs.java:336) 01-13 12:47:49.838: E/AndroidRuntime(494): at android.os.Handler.handleCallback(Handler.java:587) 01-13 12:47:49.838: E/AndroidRuntime(494): at android.os.Handler.dispatchMessage(Handler.java:92) 01-13 12:47:49.838: E/AndroidRuntime(494): at android.os.Looper.loop(Looper.java:123) 01-13 12:47:49.838: E/AndroidRuntime(494): at android.app.ActivityThread.main(ActivityThread.java:4627) 01-13 12:47:49.838: E/AndroidRuntime(494): at java.lang.reflect.Method.invokeNative(Native Method) 01-13 12:47:49.838: E/AndroidRuntime(494): at java.lang.reflect.Method.invoke(Method.java:521) 01-13 12:47:49.838: E/AndroidRuntime(494): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 01-13 12:47:49.838: E/AndroidRuntime(494): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 01-13 12:47:49.838: E/AndroidRuntime(494): at dalvik.system.NativeStart.main(Native Method) 01-13 12:47:49.838: E/AndroidRuntime(494): Caused by: java.lang.IllegalArgumentException: Unknown color 01-13 12:47:49.838: E/AndroidRuntime(494): at android.graphics.Color.parseColor(Color.java:212) 01-13 12:47:49.838: E/AndroidRuntime(494): at com.tieronecafe.BT_color.getColorFromHexString(BT_color.java:48) 01-13 12:47:49.838: E/AndroidRuntime(494): at com.tieronecafe.BT_viewUtilities.getNavBarForScreen(BT_viewUtilities.java:130) 01-13 12:47:49.838: E/AndroidRuntime(494): at com.tieronecafe.BT_screen_menuList.onCreate(BT_screen_menuList.java:146) 01-13 12:47:49.838: E/AndroidRuntime(494): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 01-13 12:47:49.838: E/AndroidRuntime(494): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 01-13 12:47:49.838: E/AndroidRuntime(494): ... 16 more 01-13 12:47:51.868: I/Process(494): Sending signal. PID: 494 SIG: 9
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/12/12 09:18 PM (14 years ago)
OK, this is total stab in the dark, but this line stands out (and another one like it): 01-13 12:47:49.838: E/AndroidRuntime(494): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tieronecafe/com.tieronecafe.BT_screen_menuList}: java.lang.IllegalArgumentException: Unknown color This suggests that you've configured a background color for your menu list, or perhaps list item color or something? What happens if you remove all those settings, leaving the default colors. Does that solve the problem? Mark
 
Cyrus_8888
I hate code!
Profile
Posts: 151
Reg: Dec 24, 2011
Sydney
1,610
like
01/12/12 10:49 PM (14 years ago)
MARK, YOU ARE SUCH A LIFE SAVER!!!!! THANKS!!!!!!!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/12/12 10:59 PM (14 years ago)
Awesome! Just out of curiosity, and so I can do some further investigation, which color did you have specified? And, was it a background color, menu list color, or some other color? Thanks! Mark
 
Cyrus_8888
I hate code!
Profile
Posts: 151
Reg: Dec 24, 2011
Sydney
1,610
like
01/13/12 03:31 AM (14 years ago)
The error is from the Nav. Bar Background Color I did an extra 0 for setting up the back background. Xcode went through without any hassle, but go busted with Eclipse. Cyrus
 

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.