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

Something new and crazy

Just when I thought I'd seen it all here is a new one. Making this Android app. Home screen is a menu with buttons on the bottom which all link to menus with images. These menus have multiple rows. As I said all going well - after adding a new row I go to the phone, go to home screen and immediately BT tells me things have changed and it refreshes. Fine. Now, all of a sudden no matter where I add a new row, even to a menu where all has worked well in the past, if I go back to home screen, no message from BT about refreshing. Of course, the row is not there, but if I hit the menu button on the phone and tell it to refresh all data, BT comes back with an error "Something's wrong, error loading screen? App couldn't determine what to display." And there is no way out of this. I have to delete the data in the app, and then go back to BT and delete the row and it's associated screen. Once I do that, all of a sudden BT is back to automatically refreshing and all is well. I have repeated this dozens of times, with the same results. Add a new row-- no automatic refresh - force refresh ---error. Delete row --automatic refresh back ---all is well with what I already have until the point this all started. Any words of wisdom? This is driving me nutty. Steve
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
02/03/13 05:27 PM (12 years ago)
I would look for an extra ' or other problems in your titles. I have had a problem similar with having pushed "enter" inside an email plugin. By the way... Looks like you could use a member badge ;)
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
02/03/13 06:06 PM (12 years ago)
Outbreak, No extra spaces or marks in the titles, been making them very simple to test. It's as if BT does not see me adding theses new rows since there's no automatic refresh. Yet when I take the row out, auto refresh starts again. No matter which screen menu I try to add a row to, even menus that have already had rows added to them successfully, this happens. Am considering re downloading code but would like to leave that for last resort. BTW the member joining screen asks me for a promo code to flip.mp4 massaging.mp4 -- any idea what it is?
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
02/03/13 06:06 PM (12 years ago)
Not flip.mp4, to enter.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/03/13 06:32 PM (12 years ago)
I had a similar occurrence happen recently. It was crashing on iOS, wasn't doing any refresh on android... having both platforms was only useful in letting me know that it was probably 'me' that was the problem, because neither problem was similar enough. They just 'didn't work' so well... It ended up being a syntax error in one of my entries... Like Outbreak said; make sure you have no spurious characters in your config. Take a copy of your configuration file, and run it through JSON lint. It will catch all the obvious stuff. If it doesn't find anything, and you still experience that behavior, I'd step back a second and check through all your screens and links and make sure the resources are still there and valid. Cheers! -- Smug
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
02/03/13 06:40 PM (12 years ago)
Agreed... The jsonlint.com site is great
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
02/03/13 07:09 PM (12 years ago)
Json tested as fine. So, started a new menu with images, added 3 rows, no problem. Added a fourth row, text=Differential Diagnosis (exactly as written), Screen = Diff (exactly as written), chose HTML as the type. Saved. Went to phone and all hell breaks loose. Somethings not right, etc. And then I can't even back out of it by hitting the hardware back key, it just throws me out. Have to go to setting, applications and delete data. Then start again and back to Somethings not right. This is crazy.
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
02/03/13 07:11 PM (12 years ago)
I would redownload source...clean slate
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
02/03/13 07:51 PM (12 years ago)
Gets weirder and weirder. Redownloaded, imported, and the new BT_activity_root shows a red x. When I expand, there are lots of red x's in the com section. I have copied them below. And this was just a clean redownload of source code. I didn't even add any files to it yet. /BT_activity_root/src/com/pedsophandroid/BT_item.java com.pedsophandroid.BT_item com.pedsophandroid.BT_item.annotationSubTitle com.pedsophandroid.BT_item.annotationTitle com.pedsophandroid.BT_item.image com.pedsophandroid.BT_item.imageName com.pedsophandroid.BT_item.imageURL com.pedsophandroid.BT_item.isDeviceLocation com.pedsophandroid.BT_item.isHomeScreen com.pedsophandroid.BT_item.itemId com.pedsophandroid.BT_item.itemIndex com.pedsophandroid.BT_item.itemNickname com.pedsophandroid.BT_item.itemType com.pedsophandroid.BT_item.jsonObject com.pedsophandroid.BT_item.latitude com.pedsophandroid.BT_item.longitude com.pedsophandroid.BT_item.point com.pedsophandroid.BT_item.sortName /BT_activity_root/src/com/pedsophandroid/BT_screen_map.java com.pedsophandroid.BT_screen_map com.pedsophandroid.BT_screen_map.ChildLocationsOverlay com.pedsophandroid.BT_screen_map.DownloadScreenDataWorker com.pedsophandroid.BT_screen_map.thisActivity com.pedsophandroid.BT_screen_map.activityName com.pedsophandroid.BT_screen_map.backgroundSolidColorView com.pedsophandroid.BT_screen_map.baseContentView com.pedsophandroid.BT_screen_map.childItems com.pedsophandroid.BT_screen_map.childLocationPoints com.pedsophandroid.BT_screen_map.dataURL com.pedsophandroid.BT_screen_map.defaultMapType com.pedsophandroid.BT_screen_map.didCreate com.pedsophandroid.BT_screen_map.didLoadData com.pedsophandroid.BT_screen_map.downloadInProgress com.pedsophandroid.BT_screen_map.downloadScreenDataHandler com.pedsophandroid.BT_screen_map.downloadScreenDataWorker com.pedsophandroid.BT_screen_map.droppedDevicePin com.pedsophandroid.BT_screen_map.itemizedOverlay com.pedsophandroid.BT_screen_map.JSONData com.pedsophandroid.BT_screen_map.locationPin com.pedsophandroid.BT_screen_map.mapOverlays com.pedsophandroid.BT_screen_map.mapView com.pedsophandroid.BT_screen_map.myAlert com.pedsophandroid.BT_screen_map.myLocationManager com.pedsophandroid.BT_screen_map.pinBlue com.pedsophandroid.BT_screen_map.pinGreen com.pedsophandroid.BT_screen_map.pinPurple com.pedsophandroid.BT_screen_map.pinRed com.pedsophandroid.BT_screen_map.progressBox com.pedsophandroid.BT_screen_map.progressSpinner com.pedsophandroid.BT_screen_map.saveAsFileName com.pedsophandroid.BT_screen_map.screenData com.pedsophandroid.BT_screen_map.selectedIndex com.pedsophandroid.BT_screen_map.showMapTypeButtons com.pedsophandroid.BT_screen_map.showRefreshButton com.pedsophandroid.BT_screen_map.showUserLocation com.pedsophandroid.BT_screen_map.showUserLocationButton com.pedsophandroid.BT_screen_map.singleLocationDefaultZoom com.pedsophandroid.BT_screen_map.titleContainerView com.pedsophandroid.BT_screen_map.youAreHereIcon com.pedsophandroid.BT_screen_map.getPoint(double, double) com.pedsophandroid.BT_screen_map.hideProgress() com.pedsophandroid.BT_screen_map.isRouteDisplayed() com.pedsophandroid.BT_screen_map.onConfigurationChanged(Configuration) com.pedsophandroid.BT_screen_map.onCreate(Bundle) com.pedsophandroid.BT_screen_map.onDestroy() com.pedsophandroid.BT_screen_map.onPause() com.pedsophandroid.BT_screen_map.onPrepareOptionsMenu(Menu) com.pedsophandroid.BT_screen_map.onResume() com.pedsophandroid.BT_screen_map.onStart() com.pedsophandroid.BT_screen_map.onStop() com.pedsophandroid.BT_screen_map.parseScreenData(String) com.pedsophandroid.BT_screen_map.refreshScreenData() com.pedsophandroid.BT_screen_map.removeLocations() com.pedsophandroid.BT_screen_map.setMapBoundsToPois(List<GeoPoint>, double, double) com.pedsophandroid.BT_screen_map.showAlert(String, String) com.pedsophandroid.BT_screen_map.showDetailsScreen() com.pedsophandroid.BT_screen_map.showDeviceLocation() com.pedsophandroid.BT_screen_map.showDirections() com.pedsophandroid.BT_screen_map.showLocationBubble(BT_item) com.pedsophandroid.BT_screen_map.showMapPins() com.pedsophandroid.BT_screen_map.showMapType(String) com.pedsophandroid.BT_screen_map.showProgress(String, String) com.pedsophandroid.BT_screen_map.showToast(String, String)
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
02/03/13 07:59 PM (12 years ago)
Oh I guess that was the old Google api stuff. Did the usual fix, now ok. Will see what happens with new code.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
02/04/13 06:50 AM (12 years ago)
Hey @stevek, Out of curiosity, you testing this on emulator or device? LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
02/04/13 03:33 PM (12 years ago)
Both - I re compiled and after I get home from work I'll give it a go.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
02/04/13 08:20 PM (12 years ago)
This is driving me to drink. Recompiled. Now there is no refreshing on the physical device, even pressing home and refresh. Also no refreshing on simulators and some simulators run and show the unrefreshed version and some simulators give errors, such as in the logcat below. If I copy and past the config file the physical device works, even with new entries it seems. Crazy. 02-04 22:15:10.523: E/WindowManager(299): Activity com.pedsophandroid.BT_screen_htmlDoc has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@43ec71f0 that was originally added here 02-04 22:15:10.523: E/WindowManager(299): android.view.WindowLeaked: Activity com.pedsophandroid.BT_screen_htmlDoc has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@43ec71f0 that was originally added here 02-04 22:15:10.523: E/WindowManager(299): at android.view.ViewRoot.<init>(ViewRoot.java:247) 02-04 22:15:10.523: E/WindowManager(299): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148) 02-04 22:15:10.523: E/WindowManager(299): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 02-04 22:15:10.523: E/WindowManager(299): at android.view.Window$LocalWindowManager.addView(Window.java:424) 02-04 22:15:10.523: E/WindowManager(299): at android.app.Dialog.show(Dialog.java:241) 02-04 22:15:10.523: E/WindowManager(299): at com.pedsophandroid.BT_activity_base.showAlert(BT_activity_base.java:387) 02-04 22:15:10.523: E/WindowManager(299): at com.pedsophandroid.BT_screen_htmlDoc.onCreate(BT_screen_htmlDoc.java:252) 02-04 22:15:10.523: E/WindowManager(299): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 02-04 22:15:10.523: E/WindowManager(299): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 02-04 22:15:10.523: E/WindowManager(299): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 02-04 22:15:10.523: E/WindowManager(299): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 02-04 22:15:10.523: E/WindowManager(299): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 02-04 22:15:10.523: E/WindowManager(299): at android.os.Handler.dispatchMessage(Handler.java:99) 02-04 22:15:10.523: E/WindowManager(299): at android.os.Looper.loop(Looper.java:123) 02-04 22:15:10.523: E/WindowManager(299): at android.app.ActivityThread.main(ActivityThread.java:4627) 02-04 22:15:10.523: E/WindowManager(299): at java.lang.reflect.Method.invokeNative(Native Method) 02-04 22:15:10.523: E/WindowManager(299): at java.lang.reflect.Method.invoke(Method.java:521) 02-04 22:15:10.523: E/WindowManager(299): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 02-04 22:15:10.523: E/WindowManager(299): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 02-04 22:15:10.523: E/WindowManager(299): at dalvik.system.NativeStart.main(Native Method) 02-04 22:15:10.733: W/ZZ(299): BT_fileManager: readTextFileFromAssets: "/BT_config.txt" 02-04 22:15:10.913: D/dalvikvm(299): GC_FOR_MALLOC freed 4681 objects / 394232 bytes in 172ms 02-04 22:15:10.913: W/ZZ(299): BT_activity_root:loadAppData loaded BT_config.txt from /assets folder successfully... 02-04 22:15:10.933: W/ZZ(299): BT_application: getDataURLFromAppData 02-04 22:15:11.013: W/ZZ(299): BT_activity_root:loadAppData BT_config.txt file does use a dataURL for remote updates... 02-04 22:15:11.013: W/ZZ(299): BT_fileManager: readTextFileFromCache: "cachedAppConfig.txt" 02-04 22:15:11.053: W/ZZ(299): BT_activity_root:loadAppData reading cachedAppConfig.txt from the applications download cache... 02-04 22:15:11.073: W/ZZ(299): BT_activity_root:loadAppData ignoring BT_config.txt file in Eclipse project... 02-04 22:15:11.073: W/ZZ(299): BT_application: validateApplicationData 02-04 22:15:11.143: W/ZZ(299): BT_activity_root: application data appears to be valid JSON... 02-04 22:15:11.153: W/ZZ(299): BT_application: parseJSONData 02-04 22:15:11.263: W/ZZ(299): BT_application: parsing core settings... 02-04 22:15:11.263: W/ZZ(299): BT_application: parsing themes... 02-04 22:15:11.263: W/ZZ(299): BT_application: parsing tabs... 02-04 22:15:11.273: W/ZZ(299): BT_application: parsing screens... 02-04 22:15:11.273: W/ZZ(299): BT_application:parseJSONData done parsing application data 02-04 22:15:11.273: W/ZZ(299): BT_activity_root:loadAppDataWorkerThread downloading app data from: https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA65C3B886D379DF500951703&apiKey=28E2A398D0FF748F22D249E&apiSecret=B21C4A3A395B1E1AF40589A&currentMode=Design 02-04 22:15:11.293: W/ZZ(299): BT_downloader:downloadTextData from URL: https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA65C3B886D379DF500951703&apiKey=28E2A398D0FF748F22D249E&apiSecret=B21C4A3A395B1E1AF40589A&currentMode=Design 02-04 22:15:11.373: W/ZZ(299): BT_activity_root:loadAppDataWorkerThread ERROR (7) downloading data from: https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA65C3B886D379DF500951703&apiKey=28E2A398D0FF748F22D249E&apiSecret=B21C4A3A395B1E1AF40589A&currentMode=Design 02-04 22:15:11.385: W/ZZ(299): BT_activity_root:transitionToAppHomeScreen 02-04 22:15:11.385: W/ZZ(299): BT_activity_root:transitionToAppHomeScreen non-tabbed home screen. 02-04 22:15:11.385: W/ZZ(299): BT_application: getHomeScreen 02-04 22:15:11.433: W/ZZ(299): BT_activity_base:onCreate (BASE CLASS) 02-04 22:15:11.473: W/ZZ(299): BT_screen_htmlDoc:onCreate 02-04 22:15:11.473: W/ZZ(299): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: "pseudo" 02-04 22:15:11.473: W/ZZ(299): BT_viewUtilities:updateBackgroundColorsForScreen: setting background color to: "#FFCCFF" 02-04 22:15:11.473: W/ZZ(299): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: "pseudo" 02-04 22:15:11.503: W/ZZ(299): BT_screen_htmlDoc:backgroundWorkerThread this screen does not use a background image 02-04 22:15:11.673: W/ZZ(299): BT_fileManager:doesProjectAssetExist: NO assets/BT_Docs/4E27E775B99419A5AC68FAB_screenData.html 02-04 22:15:11.673: W/ZZ(299): BT_screen_htmlDoc: ERROR. HTML file "4E27E775B99419A5AC68FAB_screenData.html" does not exist in BT_Docs folder and not URL found? Not loading. 02-04 22:15:11.693: W/ZZ(299): BT_screen_htmlDoc:onStart (BASE CLASS) 02-04 22:15:11.693: W/ZZ(299): BT_screen_htmlDoc: start GPS is set to NO in the applications configuration data, not starting GPS 02-04 22:15:11.693: W/ZZ(299): BT_screen_htmlDoc:onResume (BASE CLASS) 02-04 22:15:11.703: W/ZZ(299): BT_screen_htmlDoc:reportToCloud 02-04 22:15:11.723: W/ZZ(299): BT_screen_htmlDoc:reportToCloudWorkerThread getting lastModified from reportToCloudURL https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA65C3B886D379DF500951703&apiKey=28E2A398D0FF748F22D249E&apiSecret=B21C4A3A395B1E1AF40589A&deviceId=&deviceLatitude=&deviceLongitude=&deviceModel=generic-google_sdk&userId=&currentMode=Design 02-04 22:15:11.723: W/ZZ(299): BT_downloader:downloadTextData from URL: https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA65C3B886D379DF500951703&apiKey=28E2A398D0FF748F22D249E&apiSecret=B21C4A3A395B1E1AF40589A&deviceId=&deviceLatitude=&deviceLongitude=&deviceModel=generic-google_sdk&userId=&currentMode=Design 02-04 22:15:11.843: W/ZZ(299): BT_screen_htmlDoc:MyPictureListener: onNewPicture 02-04 22:15:11.993: E/WindowManager(299): Activity com.pedsophandroid.BT_activity_root has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@43e88760 that was originally added here 02-04 22:15:11.993: E/WindowManager(299): android.view.WindowLeaked: Activity com.pedsophandroid.BT_activity_root has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@43e88760 that was originally added here 02-04 22:15:11.993: E/WindowManager(299): at android.view.ViewRoot.<init>(ViewRoot.java:247) 02-04 22:15:11.993: E/WindowManager(299): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148) 02-04 22:15:11.993: E/WindowManager(299): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 02-04 22:15:11.993: E/WindowManager(299): at android.view.Window$LocalWindowManager.addView(Window.java:424) 02-04 22:15:11.993: E/WindowManager(299): at android.app.Dialog.show(Dialog.java:241) 02-04 22:15:11.993: E/WindowManager(299): at com.pedsophandroid.BT_activity_root.showAlert(BT_activity_root.java:151) 02-04 22:15:11.993: E/WindowManager(299): at com.pedsophandroid.BT_activity_root$3.run(BT_activity_root.java:470) 02-04 22:15:12.283: D/dalvikvm(299): GC_FOR_MALLOC freed 8132 objects / 494776 bytes in 136ms 02-04 22:15:12.723: W/ZZ(299): BT_screen_htmlDoc:handleReportToCloudResults appLastModifiedOnServer (value on server): Tue, 05 Feb 2013 03:14:08 -0800 02-04 22:15:12.723: W/ZZ(299): BT_fileManager: readTextFileFromCache: "appModified.txt" 02-04 22:15:12.723: W/ZZ(299): BT_screen_htmlDoc:handleReportToCloudResults previousModified (value on device): Tue, 05 Feb 2013 03:14:08 -0800 02-04 22:15:12.723: W/ZZ(299): BT_fileManager: saveTextFileToCache: appModified.txt 02-04 22:15:12.723: W/ZZ(299): BT_screen_htmlDoc:handleReportToCloudResults server data not changed, no refresh needed
 

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.