JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
08/17/13 11:20 PM (12 years ago)

App Screen won't load

When I run my app into a simulator the main menu comes up for my app, but when i click to get into another menu from the main menu it says my app stopped working. I have no errors in the error box. What is the problem? Please help. Thank you.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/17/13 11:22 PM (12 years ago)
Hi Jacob, Can you let us know what it says in the LogCat right before and after the time that it stops working? Also...do you have menu items configured on the screen that you are trying to navigate to? Mark
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/17/13 11:39 PM (12 years ago)
LogCat Before stopping: 08-18 02:30:13.357: W/ZZ(1484): futuristicshred_appDelegate: onCreate 08-18 02:30:13.387: W/ZZ(1484): futuristicshred_appDelegate:loadAudioPlayer 08-18 02:30:13.417: W/ZZ(1484): BT_application: Creating root-app object. 08-18 02:30:13.477: W/ZZ(1484): BT_device: Creating root-device object. 08-18 02:30:13.487: W/ZZ(1484): BT_device: This device uses an Android display density of: 120dpi (dots per inch) 08-18 02:30:13.549: W/ZZ(1484): BT_device: This device can take pictures. 08-18 02:30:13.549: W/ZZ(1484): BT_device: This device can take videos. 08-18 02:30:13.577: W/ZZ(1484): BT_device: This device can send emails. 08-18 02:30:13.597: W/ZZ(1484): BT_device: This device is GPS capable. 08-18 02:30:13.610: W/ZZ(1484): BT_user: Creating root-user object. 08-18 02:30:13.697: W/ZZ(1484): futuristicshred_appDelegate: onTrimMemory with level: 15 08-18 02:30:13.727: W/ZZ(1484): BT_activity_root:onCreate 08-18 02:30:13.908: W/ZZ(1484): BT_activity_root:loadAppData 08-18 02:30:13.968: W/ZZ(1484): BT_device:updateDeviceConnectionType: ConnectionType: CELL 08-18 02:30:13.987: W/ZZ(1484): futuristicshred_appDelegate:SoundEffectLoader:doInBackground initSoundEffects 08-18 02:30:14.070: W/ZZ(1484): futuristicshred_appDelegate:SoundEffectLoader:doInBackground initSoundEffects DISABLED 08-18 02:30:14.078: I/Choreographer(1484): Skipped 274 frames! The application may be doing too much work on its main thread. 08-18 02:30:14.148: W/ZZ(1484): BT_device:updateDeviceSize This device has a screen size of: 240 (width) x 320 (height). 08-18 02:30:14.148: W/ZZ(1484): BT_device:updateDeviceSize This application considers this to be a "small device" 08-18 02:30:14.158: W/ZZ(1484): BT_device:updateDeviceSize This device is in "portrait" orientation. 08-18 02:30:14.158: W/ZZ(1484): BT_activity_root:loadAppData loading BT_config.txt from /assests folder in Eclipse project... 08-18 02:30:14.509: I/Choreographer(1484): Skipped 259 frames! The application may be doing too much work on its main thread. 08-18 02:30:14.527: D/gralloc_goldfish(1484): Emulator without GPU emulation detected. 08-18 02:30:14.817: I/Choreographer(1484): Skipped 42 frames! The application may be doing too much work on its main thread. 08-18 02:30:14.917: I/Choreographer(1484): Skipped 129 frames! The application may be doing too much work on its main thread. 08-18 02:30:15.037: I/Choreographer(1484): Skipped 121 frames! The application may be doing too much work on its main thread. 08-18 02:30:15.177: I/Choreographer(1484): Skipped 140 frames! The application may be doing too much work on its main thread. 08-18 02:30:15.717: I/Choreographer(1484): Skipped 44 frames! The application may be doing too much work on its main thread. 08-18 02:30:15.813: I/Choreographer(1484): Skipped 42 frames! The application may be doing too much work on its main thread. 08-18 02:30:16.007: I/Choreographer(1484): Skipped 146 frames! The application may be doing too much work on its main thread. 08-18 02:30:16.167: I/Choreographer(1484): Skipped 65 frames! The application may be doing too much work on its main thread. 08-18 02:30:16.240: I/Choreographer(1484): Skipped 87 frames! The application may be doing too much work on its main thread. 08-18 02:30:16.439: I/Choreographer(1484): Skipped 55 frames! The application may be doing too much work on its main thread. 08-18 02:30:16.537: I/Choreographer(1484): Skipped 34 frames! The application may be doing too much work on its main thread. 08-18 02:30:17.218: W/ZZ(1484): BT_fileManager: readTextFileFromAssets: "/BT_config.txt" 08-18 02:30:17.277: I/Choreographer(1484): Skipped 69 frames! The application may be doing too much work on its main thread. 08-18 02:30:17.297: W/ZZ(1484): BT_activity_root:loadAppData loaded BT_config.txt from /assets folder successfully... 08-18 02:30:17.297: W/ZZ(1484): BT_application: getDataURLFromAppData 08-18 02:30:17.597: W/ZZ(1484): BT_activity_root:loadAppData BT_config.txt file does use a dataURL for remote updates... 08-18 02:30:17.607: W/ZZ(1484): BT_fileManager: readTextFileFromCache: "cachedAppConfig.txt" 08-18 02:30:17.627: W/ZZ(1484): BT_activity_root:loadAppData reading cachedAppConfig.txt from the applications download cache... 08-18 02:30:17.627: W/ZZ(1484): BT_activity_root:loadAppData ignoring BT_config.txt file in Eclipse project... 08-18 02:30:17.627: W/ZZ(1484): BT_application: validateApplicationData 08-18 02:30:17.997: I/Choreographer(1484): Skipped 38 frames! The application may be doing too much work on its main thread. 08-18 02:30:18.017: W/ZZ(1484): BT_activity_root: application data appears to be valid JSON... 08-18 02:30:18.017: W/ZZ(1484): BT_application: parseJSONData 08-18 02:30:18.108: I/Choreographer(1484): Skipped 45 frames! The application may be doing too much work on its main thread. 08-18 02:30:18.187: I/Choreographer(1484): Skipped 89 frames! The application may be doing too much work on its main thread. 08-18 02:30:18.220: I/Choreographer(1484): Skipped 38 frames! The application may be doing too much work on its main thread. 08-18 02:30:18.334: I/Choreographer(1484): Skipped 93 frames! The application may be doing too much work on its main thread. 08-18 02:30:18.408: I/Choreographer(1484): Skipped 74 frames! The application may be doing too much work on its main thread. 08-18 02:30:18.487: I/Choreographer(1484): Skipped 44 frames! The application may be doing too much work on its main thread. 08-18 02:30:18.613: I/Choreographer(1484): Skipped 81 frames! The application may be doing too much work on its main thread. 08-18 02:30:18.767: D/dalvikvm(1484): GC_FOR_ALLOC freed 337K, 14% free 2682K/3100K, paused 52ms, total 54ms 08-18 02:30:18.767: I/Choreographer(1484): Skipped 149 frames! The application may be doing too much work on its main thread. 08-18 02:30:18.787: W/ZZ(1484): BT_application: parsing core settings... 08-18 02:30:18.797: W/ZZ(1484): BT_application: parsing themes... 08-18 02:30:18.807: W/ZZ(1484): BT_application: parsing tabs... 08-18 02:30:18.807: W/ZZ(1484): BT_application: parsing screens... 08-18 02:30:18.807: W/ZZ(1484): BT_application:parseJSONData done parsing application data 08-18 02:30:18.827: W/ZZ(1484): BT_activity_root:transitionToAppHomeScreen 08-18 02:30:18.827: W/ZZ(1484): BT_activity_root:transitionToAppHomeScreen non-tabbed home screen. 08-18 02:30:18.837: W/ZZ(1484): BT_application: getHomeScreen 08-18 02:30:19.129: W/ZZ(1484): BT_activity_base:onCreate (BASE CLASS) 08-18 02:30:19.362: W/ZZ(1484): BT_screen_menuListSimple:onCreate 08-18 02:30:19.367: W/ZZ(1484): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: "Main Menu" 08-18 02:30:19.367: W/ZZ(1484): BT_viewUtilities:updateBackgroundColorsForScreen: setting background color to: "#FFFFFF" 08-18 02:30:19.412: W/ZZ(1484): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: "Main Menu" 08-18 02:30:19.437: W/ZZ(1484): BT_screen_menuListSimple:backgroundWorkerThread this screen does not use a background image 08-18 02:30:19.787: W/ZZ(1484): BT_fileManager:deleteFile 649759DADA736604D74D06D_screenData.txt 08-18 02:30:20.527: W/ZZ(1484): BT_screen_menuListSimple:onStart (BASE CLASS) 08-18 02:30:20.547: W/ZZ(1484): BT_screen_menuListSimple: start GPS is set to NO in the applications configuration data, not starting GPS 08-18 02:30:20.639: W/ZZ(1484): BT_screen_menuListSimple:onStart using data from app's configuration file 08-18 02:30:20.639: W/ZZ(1484): BT_screen_menuListSimple:parseScreenData 08-18 02:30:20.647: W/ZZ(1484): BT_screen_menuListSimple:onResume (BASE CLASS) 08-18 02:30:20.647: W/ZZ(1484): BT_screen_menuListSimple:reportToCloud 08-18 02:30:20.757: W/ZZ(1484): BT_screen_menuListSimple:reportToCloudWorkerThread getting lastModified from reportToCloudURL https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA9AF4C90F72BE6E4CDD37B41&apiKey=0EE9DEA50CE0CE995798485&apiSecret=E9DFC594F2DAC39DE4D1916&deviceId=&deviceLatitude=&deviceLongitude=&deviceModel=generic-google_sdk&userId=&currentMode=Design 08-18 02:30:20.789: W/ZZ(1484): BT_downloader:downloadTextData from URL: https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA9AF4C90F72BE6E4CDD37B41&apiKey=0EE9DEA50CE0CE995798485&apiSecret=E9DFC594F2DAC39DE4D1916&deviceId=&deviceLatitude=&deviceLongitude=&deviceModel=generic-google_sdk&userId=&currentMode=Design 08-18 02:30:22.747: I/Choreographer(1484): Skipped 123 frames! The application may be doing too much work on its main thread. 08-18 02:30:25.507: D/dalvikvm(1484): GC_FOR_ALLOC freed 187K, 9% free 3008K/3276K, paused 56ms, total 72ms 08-18 02:30:26.577: W/ZZ(1484): BT_screen_menuListSimple:handleReportToCloudResults appLastModifiedOnServer (value on server): Sun, 18 Aug 2013 06:28:18 -0700 08-18 02:30:26.577: W/ZZ(1484): BT_fileManager: readTextFileFromCache: "appModified.txt" 08-18 02:30:26.608: W/ZZ(1484): BT_screen_menuListSimple:handleReportToCloudResults previousModified (value on device): Sun, 18 Aug 2013 06:28:18 -0700 08-18 02:30:26.608: W/ZZ(1484): BT_fileManager: saveTextFileToCache: appModified.txt 08-18 02:30:26.667: W/ZZ(1484): BT_screen_menuListSimple:handleReportToCloudResults server data not changed, no refresh needed LogCat when stopping: 08-18 02:35:23.528: I/Choreographer(1484): Skipped 87 frames! The application may be doing too much work on its main thread. 08-18 02:35:23.627: W/ZZ(1484): BT_screen_menuListSimple:handleItemTap loads screen with itemId: "9D14A10B9239ED7CD119B23" 08-18 02:35:23.627: W/ZZ(1484): BT_application:getScreenDataByItemId with itemId: = "9D14A10B9239ED7CD119B23" 08-18 02:35:23.627: W/ZZ(1484): BT_application:getScreenDataByItemId with itemType: "BT_screen_menuButtons" with nickname: "Techniques" 08-18 02:35:23.627: W/ZZ(1484): BT_act_controller:loadScreenObject for screen with itemId: "9D14A10B9239ED7CD119B23" and itemNickname: "Techniques" and itemType: "BT_screen_menuButtons" 08-18 02:35:23.777: I/Choreographer(1484): Skipped 284 frames! The application may be doing too much work on its main thread. 08-18 02:35:23.827: W/ZZ(1484): BT_screen_menuListSimple:onPause (BASE CLASS) 08-18 02:35:23.960: W/ZZ(1484): BT_activity_base:onCreate (BASE CLASS) 08-18 02:35:24.087: W/ZZ(1484): BT_screen_menuList:onCreate 08-18 02:35:24.097: W/ZZ(1484): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: "Techniques" 08-18 02:35:24.097: W/ZZ(1484): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: "Techniques" 08-18 02:35:24.117: W/ZZ(1484): BT_screen_menuList:backgroundWorkerThread this screen does not use a background image 08-18 02:35:24.217: W/ZZ(1484): BT_fileManager:deleteFile 9D14A10B9239ED7CD119B23_screenData.txt 08-18 02:35:24.217: D/AndroidRuntime(1484): Shutting down VM 08-18 02:35:24.227: W/dalvikvm(1484): threadid=1: thread exiting with uncaught exception (group=0x414c4700) 08-18 02:35:24.327: E/AndroidRuntime(1484): FATAL EXCEPTION: main 08-18 02:35:24.327: E/AndroidRuntime(1484): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.futuristicshred/com.futuristicshred.BT_screen_menuButtons}: java.lang.NumberFormatException: Invalid int: ".3" 08-18 02:35:24.327: E/AndroidRuntime(1484): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211) 08-18 02:35:24.327: E/AndroidRuntime(1484): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261) 08-18 02:35:24.327: E/AndroidRuntime(1484): at android.app.ActivityThread.access$600(ActivityThread.java:141) 08-18 02:35:24.327: E/AndroidRuntime(1484): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) 08-18 02:35:24.327: E/AndroidRuntime(1484): at android.os.Handler.dispatchMessage(Handler.java:99) 08-18 02:35:24.327: E/AndroidRuntime(1484): at android.os.Looper.loop(Looper.java:137) 08-18 02:35:24.327: E/AndroidRuntime(1484): at android.app.ActivityThread.main(ActivityThread.java:5103) 08-18 02:35:24.327: E/AndroidRuntime(1484): at java.lang.reflect.Method.invokeNative(Native Method) 08-18 02:35:24.327: E/AndroidRuntime(1484): at java.lang.reflect.Method.invoke(Method.java:525) 08-18 02:35:24.327: E/AndroidRuntime(1484): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) 08-18 02:35:24.327: E/AndroidRuntime(1484): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 08-18 02:35:24.327: E/AndroidRuntime(1484): at dalvik.system.NativeStart.main(Native Method) 08-18 02:35:24.327: E/AndroidRuntime(1484): Caused by: java.lang.NumberFormatException: Invalid int: ".3" 08-18 02:35:24.327: E/AndroidRuntime(1484): at java.lang.Integer.invalidInt(Integer.java:138) 08-18 02:35:24.327: E/AndroidRuntime(1484): at java.lang.Integer.parse(Integer.java:375) 08-18 02:35:24.327: E/AndroidRuntime(1484): at java.lang.Integer.parseInt(Integer.java:366) 08-18 02:35:24.327: E/AndroidRuntime(1484): at java.lang.Integer.parseInt(Integer.java:332) 08-18 02:35:24.327: E/AndroidRuntime(1484): at com.futuristicshred.BT_screen_menuButtons.onCreate(BT_screen_menuButtons.java:156) 08-18 02:35:24.327: E/AndroidRuntime(1484): at android.app.Activity.performCreate(Activity.java:5133) 08-18 02:35:24.327: E/AndroidRuntime(1484): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 08-18 02:35:24.327: E/AndroidRuntime(1484): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175) 08-18 02:35:24.327: E/AndroidRuntime(1484): ... 11 more Sorry for it being too long. I have 1 Menu item on it so far, but the page it leads to has nothing on it.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/17/13 11:50 PM (12 years ago)
It looks to me like the problem might be here: 08-18 02:35:24.327: E/AndroidRuntime(1484): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.futuristicshred/com.futuristicshred.BT_screen_menuButtons}: java.lang.NumberFormatException: Invalid int: ".3" The only place I see a .3 in your JSON is the buttonOpacity value for your Button Menu. However, I would expect that to work, because the control panel says you can use .1 to 1.0. To test, try changing it to 0.3, or leaving it blank. If the app works in either of those cases, we've at least identified where the issue is, and then can go from there. You only need to change that value in your control panel, and then hit the Refresh button while within the app. That'll grab the new config file. Give it shot and let me know what happens! Mark
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/17/13 11:59 PM (12 years ago)
I did that and it still doing the same thing.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/18/13 12:02 AM (12 years ago)
I still see the following in your JSON file: buttonOpacity":"0.3" Did you hit the "Save" button after you made the change in your control panel, and verified that it changes in the little snippet of JSON it shows? Mark
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/18/13 12:05 AM (12 years ago)
There are three places it's set to .3 or 0.3, so make sure you change them all. If it fails with 0.3, then try removing that number completely and leaving it blank (and hitting Save). Mark
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/18/13 12:06 AM (12 years ago)
i changed it to 0.3. it still doesnt work. im confused
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/18/13 12:08 AM (12 years ago)
Try making it blank in all three places you have it configured. You have three button menu's where it's configured.
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/18/13 12:16 AM (12 years ago)
It worked. Thanks :)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/18/13 12:18 AM (12 years ago)
Sweet! Looks like you removed the value completely, which is the default. It "should" work at the other values, so I'll check into that as a possible bug. But David @ buzztouch has rewritten the code recently, so it may no longer be an issue. Rock on! 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.