CreativeAppsPublishing
Android Fan
Profile
Posts: 63
Reg: Jul 31, 2013
Miri Sarawak
5,030
08/11/13 07:56 AM (12 years ago)

Issue with eClipse

Hi everyone! I am having some issue after I have downloaded my Android Source Code from Buzztouch and Run it with eClipse. When I click on the run button in my eclipse, there is this message "The application (my application name) has stopped unexpectedly. Please try again." I really don't know what to do... I tried to delete my project and then re-download my source code from buzztouch and then run again. Still it fails. Can anyone advice me what to do? Thanks in advance...
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/11/13 10:21 AM (12 years ago)
What error message does the logcat shows?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/11/13 03:54 PM (12 years ago)
Lots of time this is due to file names being incompatible. LogCat will for sure let us know more. But make sure your filenames, like any images or document, follow the a_z0_9 naming convention (no caps, spaces, special characters). This does not apply to the .java or .xml files. Mark
 
CreativeAppsPublis...
Android Fan
Profile
Posts: 63
Reg: Jul 31, 2013
Miri Sarawak
5,030
like
08/12/13 05:38 AM (12 years ago)
Hey Guys! After trying again by re downloading my Android Source Code and then run it inside eclipse, still the same error showed by the emulator, "The application (my application name) has stopped unexpectedly. Please try again." Here is what the logcat says: 08-12 12:33:26.813: W/ZZ(304): kettlebellworkoutroutines_appDelegate: onCreate 08-12 12:33:26.822: W/ZZ(304): kettlebellworkoutroutines_appDelegate:loadAudioPlayer 08-12 12:33:26.862: W/ZZ(304): BT_application: Creating root-app object. 08-12 12:33:26.862: W/ZZ(304): BT_device: Creating root-device object. 08-12 12:33:26.873: W/ZZ(304): BT_device: This device uses an Android display density of: 160dpi (dots per inch) 08-12 12:33:26.882: W/ZZ(304): BT_device: This device can take pictures. 08-12 12:33:26.894: W/ZZ(304): BT_device: This device can take videos. 08-12 12:33:26.894: W/ZZ(304): BT_device: This device can send emails. 08-12 12:33:26.912: W/ZZ(304): BT_device: This device is GPS capable. 08-12 12:33:26.924: W/ZZ(304): BT_user: Creating root-user object. 08-12 12:33:27.002: W/ZZ(304): kettlebellworkoutroutines_appDelegate:SoundEffectLoader:doInBackground initSoundEffects 08-12 12:33:27.013: W/ZZ(304): BT_activity_root:onCreate 08-12 12:33:27.122: W/ZZ(304): BT_activity_root:loadAppData 08-12 12:33:27.262: W/ZZ(304): BT_device:updateDeviceConnectionType: ConnectionType: CELL 08-12 12:33:27.262: W/ZZ(304): BT_device:updateDeviceSize This device has a screen size of: 480 (width) x 800 (height). 08-12 12:33:27.282: W/ZZ(304): BT_device:updateDeviceSize This application considers this to be a "small device" 08-12 12:33:27.292: W/ZZ(304): BT_device:updateDeviceSize This device is in "portrait" orientation. 08-12 12:33:27.315: W/ZZ(304): BT_activity_root:loadAppData loading BT_config.txt from /assests folder in Eclipse project... 08-12 12:33:27.532: W/ZZ(304): kettlebellworkoutroutines_appDelegate:SoundEffectLoader:doInBackground initSoundEffects DISABLED 08-12 12:33:27.814: W/ZZ(304): BT_fileManager: readTextFileFromAssets: "/BT_config.txt" 08-12 12:33:27.862: W/ZZ(304): BT_activity_root:loadAppData loaded BT_config.txt from /assets folder successfully... 08-12 12:33:27.872: W/ZZ(304): BT_application: getDataURLFromAppData 08-12 12:33:27.992: W/ZZ(304): BT_activity_root:loadAppData BT_config.txt file does use a dataURL for remote updates... 08-12 12:33:28.033: W/ZZ(304): BT_activity_root:loadAppData cachedAppConfig.txt does not exist in the cache... 08-12 12:33:28.042: W/ZZ(304): BT_application: validateApplicationData 08-12 12:33:28.074: W/ZZ(304): BT_activity_root: application data appears to be valid JSON... 08-12 12:33:28.074: W/ZZ(304): BT_application: parseJSONData 08-12 12:33:28.112: W/ZZ(304): BT_application: parsing core settings... 08-12 12:33:28.292: W/ZZ(304): BT_application: parsing themes... 08-12 12:33:28.292: W/ZZ(304): BT_application: parsing tabs... 08-12 12:33:28.326: W/ZZ(304): BT_application: parsing screens... 08-12 12:33:28.326: W/ZZ(304): BT_application:parseJSONData done parsing application data 08-12 12:33:28.512: W/ZZ(304): BT_activity_root:transitionToAppHomeScreen 08-12 12:33:28.512: W/ZZ(304): BT_activity_root:transitionToAppHomeScreen splash screen with itemId: F1C5D3F4D23DDC90F9B426E 08-12 12:33:28.552: W/ZZ(304): BT_application:getScreenDataByItemId with itemId: = "F1C5D3F4D23DDC90F9B426E" 08-12 12:33:28.552: W/ZZ(304): BT_application:getScreenDataByItemId could not find screen with itemId: "F1C5D3F4D23DDC90F9B426E" 08-12 12:33:28.572: D/AndroidRuntime(304): Shutting down VM 08-12 12:33:28.572: W/dalvikvm(304): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 08-12 12:33:28.632: E/AndroidRuntime(304): FATAL EXCEPTION: main 08-12 12:33:28.632: E/AndroidRuntime(304): java.lang.NullPointerException 08-12 12:33:28.632: E/AndroidRuntime(304): at com.kettlebellworkoutroutines.BT_activity_root.transitionToAppHomeScreen(BT_activity_root.java:198) 08-12 12:33:28.632: E/AndroidRuntime(304): at com.kettlebellworkoutroutines.BT_activity_root$1.handleMessage(BT_activity_root.java:307) 08-12 12:33:28.632: E/AndroidRuntime(304): at android.os.Handler.dispatchMessage(Handler.java:99) 08-12 12:33:28.632: E/AndroidRuntime(304): at android.os.Looper.loop(Looper.java:123) 08-12 12:33:28.632: E/AndroidRuntime(304): at android.app.ActivityThread.main(ActivityThread.java:4627) 08-12 12:33:28.632: E/AndroidRuntime(304): at java.lang.reflect.Method.invokeNative(Native Method) 08-12 12:33:28.632: E/AndroidRuntime(304): at java.lang.reflect.Method.invoke(Method.java:521) 08-12 12:33:28.632: E/AndroidRuntime(304): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 08-12 12:33:28.632: E/AndroidRuntime(304): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 08-12 12:33:28.632: E/AndroidRuntime(304): at dalvik.system.NativeStart.main(Native Method) I really have no idea on how to deal with this... Wish someone could advice me... Thanks.
 
CreativeAppsPublis...
Android Fan
Profile
Posts: 63
Reg: Jul 31, 2013
Miri Sarawak
5,030
like
08/12/13 05:53 AM (12 years ago)
Hey guys!... Here is what the logcat says: 08-12 12:47:36.708: W/ZZ(305): kettlebellworkoutroutines_appDelegate: onCreate 08-12 12:47:36.717: W/ZZ(305): kettlebellworkoutroutines_appDelegate:loadAudioPlayer 08-12 12:47:36.737: W/ZZ(305): BT_application: Creating root-app object. 08-12 12:47:36.737: W/ZZ(305): BT_device: Creating root-device object. 08-12 12:47:36.747: W/ZZ(305): BT_device: This device uses an Android display density of: 160dpi (dots per inch) 08-12 12:47:36.757: W/ZZ(305): BT_device: This device can take pictures. 08-12 12:47:36.757: W/ZZ(305): BT_device: This device can take videos. 08-12 12:47:36.757: W/ZZ(305): BT_device: This device can send emails. 08-12 12:47:36.767: W/ZZ(305): BT_device: This device is GPS capable. 08-12 12:47:36.777: W/ZZ(305): BT_user: Creating root-user object. 08-12 12:47:36.847: W/ZZ(305): BT_activity_root:onCreate 08-12 12:47:36.937: W/ZZ(305): BT_activity_root:loadAppData 08-12 12:47:37.047: W/ZZ(305): BT_device:updateDeviceConnectionType: ConnectionType: CELL 08-12 12:47:37.047: W/ZZ(305): BT_device:updateDeviceSize This device has a screen size of: 480 (width) x 800 (height). 08-12 12:47:37.057: W/ZZ(305): BT_device:updateDeviceSize This application considers this to be a "small device" 08-12 12:47:37.057: W/ZZ(305): BT_device:updateDeviceSize This device is in "portrait" orientation. 08-12 12:47:37.097: W/ZZ(305): BT_activity_root:loadAppData loading BT_config.txt from /assests folder in Eclipse project... 08-12 12:47:37.597: W/ZZ(305): BT_fileManager: readTextFileFromAssets: "/BT_config.txt" 08-12 12:47:37.698: W/ZZ(305): BT_activity_root:loadAppData loaded BT_config.txt from /assets folder successfully... 08-12 12:47:37.727: W/ZZ(305): BT_application: getDataURLFromAppData 08-12 12:47:37.817: W/ZZ(305): BT_activity_root:loadAppData BT_config.txt file does use a dataURL for remote updates... 08-12 12:47:37.878: W/ZZ(305): BT_activity_root:loadAppData cachedAppConfig.txt does not exist in the cache... 08-12 12:47:37.997: W/ZZ(305): BT_application: validateApplicationData 08-12 12:47:38.007: W/ZZ(305): BT_activity_root: application data appears to be valid JSON... 08-12 12:47:38.067: W/ZZ(305): BT_application: parseJSONData 08-12 12:47:38.157: W/ZZ(305): BT_application: parsing core settings... 08-12 12:47:38.227: W/ZZ(305): BT_application: parsing themes... 08-12 12:47:38.227: W/ZZ(305): BT_application: parsing tabs... 08-12 12:47:38.227: W/ZZ(305): BT_application: parsing screens... 08-12 12:47:38.227: W/ZZ(305): BT_application:parseJSONData done parsing application data 08-12 12:47:38.257: W/ZZ(305): BT_activity_root:transitionToAppHomeScreen 08-12 12:47:38.257: W/ZZ(305): BT_activity_root:transitionToAppHomeScreen splash screen with itemId: F1C5D3F4D23DDC90F9B426E 08-12 12:47:38.287: W/ZZ(305): BT_application:getScreenDataByItemId with itemId: = "F1C5D3F4D23DDC90F9B426E" 08-12 12:47:38.287: W/ZZ(305): BT_application:getScreenDataByItemId could not find screen with itemId: "F1C5D3F4D23DDC90F9B426E" 08-12 12:47:38.287: D/AndroidRuntime(305): Shutting down VM 08-12 12:47:38.287: W/dalvikvm(305): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 08-12 12:47:38.327: E/AndroidRuntime(305): FATAL EXCEPTION: main 08-12 12:47:38.327: E/AndroidRuntime(305): java.lang.NullPointerException 08-12 12:47:38.327: E/AndroidRuntime(305): at com.kettlebellworkoutroutines.BT_activity_root.transitionToAppHomeScreen(BT_activity_root.java:198) 08-12 12:47:38.327: E/AndroidRuntime(305): at com.kettlebellworkoutroutines.BT_activity_root$1.handleMessage(BT_activity_root.java:307) 08-12 12:47:38.327: E/AndroidRuntime(305): at android.os.Handler.dispatchMessage(Handler.java:99) 08-12 12:47:38.327: E/AndroidRuntime(305): at android.os.Looper.loop(Looper.java:123) 08-12 12:47:38.327: E/AndroidRuntime(305): at android.app.ActivityThread.main(ActivityThread.java:4627) 08-12 12:47:38.327: E/AndroidRuntime(305): at java.lang.reflect.Method.invokeNative(Native Method) 08-12 12:47:38.327: E/AndroidRuntime(305): at java.lang.reflect.Method.invoke(Method.java:521) 08-12 12:47:38.327: E/AndroidRuntime(305): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 08-12 12:47:38.327: E/AndroidRuntime(305): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 08-12 12:47:38.327: E/AndroidRuntime(305): at dalvik.system.NativeStart.main(Native Method) 08-12 12:47:39.427: W/ZZ(305): kettlebellworkoutroutines_appDelegate:SoundEffectLoader:doInBackground initSoundEffects 08-12 12:47:39.447: W/ZZ(305): kettlebellworkoutroutines_appDelegate:SoundEffectLoader:doInBackground initSoundEffects DISABLED 08-12 12:48:19.107: I/Process(305): Sending signal. PID: 305 SIG: 9 I really don't know what is the error.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/12/13 10:05 AM (12 years ago)
This looks like you had defined a splash screen at one time, and then deleted it. Make sure you've done this: * Delete the splash screen from your list of screens * Go into the Layout section and make sure the reference to the splash screen is deleted there. Then go to your configuration data tab, copy the latest Design mode version into your BT_Config.txt file, and then recompile. Hopefully this will take care of it! Mark
 
CreativeAppsPublis...
Android Fan
Profile
Posts: 63
Reg: Jul 31, 2013
Miri Sarawak
5,030
like
08/12/13 05:38 PM (12 years ago)
You are right. I login to Buzztouch Control Panel and check accordingly. * Splash Screen has already been deleted from the list of screens * The reference to the splash screen has also been deleted already But when I go to my "Configuration Data Tab", below is what I see: {"BT_appConfig": { "BT_items":[ {"itemId":"JAE1965B2AB96D38154D27DED", "itemType":"BT_app", "buzztouchAppId":"JAE1965B2AB96D38154D27DED", "buzztouchAPIKey":"88417AAF16842C3413C65B3", "dataURL":"https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JAE1965B2AB96D38154D27DED&apiKey=88417AAF16842C3413C65B3&apiSecret=5088A215203C468BB9ACD8B", "reportToCloudURL":"https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JAE1965B2AB96D38154D27DED&apiKey=88417AAF16842C3413C65B3&apiSecret=5088A215203C468BB9ACD8B&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "registerForPushURL":"https://www.buzztouch.com/api/app/?command=registerForPush&appGuid=JAE1965B2AB96D38154D27DED&apiKey=88417AAF16842C3413C65B3&apiSecret=5088A215203C468BB9ACD8B&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "lastModified":"Mon, 12 Aug 2013 11:27:17 -0700", "lastPublished":"Sun, 11 Aug 2013 04:50:30 -0700", "name":"Kettlebell Workout Routines", "version":"1.0", "currentMode":"Design", "startLocationUpdates":"0", "promptForPushNotifications":"0", "allowRotation":"largeDevicesOnly", "BT_themes":[{"itemId":"028EF0B729D9A82AF64340E", "itemType":"BT_theme", "itemNickname":"Default Theme", "splashScreenItemId":"F1C5D3F4D23DDC90F9B426E", "navBarStyle":"solid", "statusBarStyle":"default", "backgroundColor":"#FFFFFF"} ], "BT_tabs":[ ], "BT_screens":[{"itemId":"6D172607ABFE0332D5C67C6", "itemType":"BT_screen_menuListSimple", "itemNickname":"Home Screen Menu", "navBarTitleText":"Home", "childItems":[{"itemId":"B323F40D1A95819F420E025", "itemType":"BT_menuItem", "loadScreenWithItemId":"D929E8C2AE652ED4108437B","titleText":"Email Kettlebell"}, {"itemId":"557AA0A48F0758140488090", "itemType":"BT_menuItem", "loadScreenWithItemId":"F54980B9EDA8472D60711EB","titleText":"Kettlebell Location Map"}]}, {"itemId":"D929E8C2AE652ED4108437B", "itemType":"BT_sendEmail", "itemNickname":"Email Kettlebell", "emailSubject":"question about your app...", "emailToAddress":"[email protected]"}, {"itemId":"F54980B9EDA8472D60711EB", "itemType":"BT_screen_map", "itemNickname":"Kettlebell Location Map", "navBarTitleText":"Kettlebell Location Map", "singleLocationDefaultZoom":"15", "defaultMapType":"standard", "childItems":[{"itemId":"35710D109BFACE08F573769", "itemType":"BT_mapLocation","latitude":"4.421548", "longitude":"114.02053", "title":"Kettlebell", "subTitle":"Lot 412, Jalan Pujut Padang Kerbau 2B", "loadScreenWithItemId":"showDirections"}]} ] } ] }} And then when I click on the "Live Mode Data Tab" under the "Configuration Data Tan", here is what I see: {"status":"live version of config file does not exist?"} I am not sure of how to go about this... Do I have to copy the code into a txt file and then paste it inside the BT_Config.txt file inside my eclipse? Or is there a way I can reset the code in the configuration data tab into its default setting? Wait, if you see the code inside my "Configuration Data Tab", there is one line of code ("BT_themes":...) says that there is a splash screen ID, below is how it looks like: "BT_themes":[{"itemId":"028EF0B729D9A82AF64340E", "itemType":"BT_theme", "itemNickname":"Default Theme", "splashScreenItemId":"F1C5D3F4D23DDC90F9B426E", "navBarStyle":"solid", "statusBarStyle":"default", "backgroundColor":"#FFFFFF"}
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/13/13 09:03 PM (12 years ago)
Hi Tommy, OK, so a few things I would do here: * Go back to the layout section. Make sure the Splash Screen box is clear, and make sure you hit Save again. It should show you what the JSON snippet for the layout looks like...make sure it doesn't show anything for a Splash Screen. * Go to the main page for your app. Click on the "Publish Changes" (which should have a red dot next to it) link. Then click Publish. Don't worry about a version number. * Click on Configuration Data tab...verify that the Design Mode and Live Mode config files are the same. They should be. * Copy the Design Mode stuff into your BT_Config.txt file. Do a Product > Clean, and then build again (make sure original app is deleted from the device). * Celebrate because all is well! (Hopefully) Mark
 
CreativeAppsPublis...
Android Fan
Profile
Posts: 63
Reg: Jul 31, 2013
Miri Sarawak
5,030
like
08/14/13 03:57 AM (12 years ago)
A BIG THANK YOU to GoNorthWest! Finally, my project seems to run in eClipse... Again, you have helped me solve my problem... I just don't know what I can say anymore to thank you enough for your advice and help. Really, thank you... I have subscribed to your youtube channel. I also want to thank Sandeep and just want to say you guys save me when I almost give up with buzztouch... Not only you guys have helped me tremendously but without realizing it, I have learnt to know more about Buzztuch Platform and also eClipse. You guys have restored the hope of a non-technie like me to continue with my work. You guys deserve 8 stars... Once again, THANK YOU VERY MUCH... Have a nice day. Regards Tommy Koo Your App Development Buddy!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/14/13 07:23 AM (12 years ago)
Excellent! Way to go, Tommy! Many props to you as well for sticking with it. You've made it past where many others stop trying, so you should be proud of that! Can't wait to see what sort of apps you come up with! Don't hesitate to post if you have questions! 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.