Discussion Forums  >  Images, Documents, File Locations

Replies: 54    Views: 105

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

Finding file in ver 2 vs 1.5

Am writing a new version of an old app - the old one was in ver 1.5 and when I had a screen which linked to an html file, BT just asked for the file name and I had to drag that file, once compiled, to the BT_docs folder. Now I'm trying to do the same thing with ver 2 but I get a screen which asks me for the location of the document and it gives me a choice of File Name in Project or load from a URL. I have the file in the BT_Docs file in Eclipse but that is not enough since when I run the simulator I get an error loading the screen and it doesn't know what to display. I guess I have to put in an entry into this Location of Document but I'm not sure what to do. Please help. Steve
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 01:21 PM (12 years ago)
Hi @stevek, Make sure your file name is lowercase and no special characters. For example, goodfile...badFile. LA
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
01/27/13 01:23 PM (12 years ago)
Add the file name of the file under bt-docs but with android make sure you have no spaces or capital letters in file names.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 01:32 PM (12 years ago)
The file is under BT_Docs with no capitals - it's called january2012.htm At the moment I have no entry in BT for Document Location since I don't know what to put it there.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 01:36 PM (12 years ago)
@stevek, You linking to them with a plugin to be online or locally? LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 01:41 PM (12 years ago)
Locally I guess. I want, as I did in the IOS app this is based upon, to have the file in the BT_Docs folder.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 01:46 PM (12 years ago)
@stevek, Yes but what type of screen you using to show the html page? Also make sure you put the html page in your BT folder with all images. LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 01:48 PM (12 years ago)
I guess what I don't understand is do now, in ver 2, I have to upload all document files to BT itself through that upload screen that comes up when I go to select FIle Name in Project for the Document Location where as in the past with 1.5 I just created the file and dragged it to the BT-Docs file already in Xcode when I first compiled the app?
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 01:53 PM (12 years ago)
LA To answer you last question, I have a screen of buttons, one says JANUARY and when it's clicked I've told BT to load an HTM document. BT is asking for a FIle Name in Project or a URL. It never did that before in 1.5 - I just put down a name for the html file and dragged it into Xcode on my own, not using BT. Now BT seems to want me to do something.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 01:53 PM (12 years ago)
@stevek, You can use the Custom URL plugin/screen and choose a link to put it fully online and put all your html pages in BT_Docs with the images (that's the way I prefer with my images) then in your HTML page refer to your image in the BT_Docs. This way the pages are avaliable online and local storage. Make sense? LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 01:56 PM (12 years ago)
LA To answer you last question, I have a screen of buttons, one says JANUARY and when it's clicked I've told BT to load an HTM document. BT is asking for a FIle Name in Project or a URL. It never did that before in 1.5 - I just put down a name for the html file and dragged it into Xcode on my own, not using BT. Now BT seems to want me to do something.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 01:59 PM (12 years ago)
@stevek, How are you telling a button what to load? Are you coding? LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 02:02 PM (12 years ago)
I really didn't want the user to have to have internet access to run my app but if I did what you say, what should should I put down for the URL to load?
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 02:03 PM (12 years ago)
In answer to the last post of yours, BT gives me a screen which asks me under Document Location to put in FIle Name in Project or Load from this URL Instead.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 02:05 PM (12 years ago)
That is I'm in Screens/Actions in BT. It shows my list of buttons, the headings are Selecting this button... Loads this... order. If I click on the entry under Loads this... a new page comes up of choices and the third one is Document Location.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 02:05 PM (12 years ago)
@stevek, Where ever the html is located online, just copy that link. In your 1.5 version, what type of bt screens did you have so I can understand better where your trying to go with this? LA
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 02:08 PM (12 years ago)
@stevek, Ok you need a document reader installed on your emulator to read word and pdf documents. Just choose special html text screen for this. LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 02:12 PM (12 years ago)
That is I'm in Screens/Actions in BT. It shows my list of buttons, the headings are Selecting this button... Loads this... order. If I click on the entry under Loads this... a new page comes up of choices and the third one is Document Location.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 02:13 PM (12 years ago)
The html files are located on my MAC, nowhere on line.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 02:15 PM (12 years ago)
Ok, did you pick your document location on the BT control panel you uploaded? LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 02:16 PM (12 years ago)
The html files are located on my MAC, nowhere on line.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 02:17 PM (12 years ago)
Upload your files to BT control panel and when you select loads this then it will be there to select. You still need to copy all documents into the BT folder on Eclipse. LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 02:19 PM (12 years ago)
I'm not sure what you mean. I had BT compile, then I ran eclipse and imported from the downloaded folder BT produced. Then I dragged all my old html files and jpgs to BT_Docs in Eclipse. What do you mean by picking document location?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 02:25 PM (12 years ago)
Did you convert all your screens or whatever is in your 1.5 App with Buzztouch to a new App with 2.0? I don't believe you can just recompile a 1.5 to 2.0. LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 02:33 PM (12 years ago)
I'm not sure what you mean. I had BT compile, then I ran eclipse and imported from the downloaded folder BT produced. Then I dragged all my old html files and jpgs to BT_Docs in Eclipse. What do you mean by picking document location?
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 02:36 PM (12 years ago)
I've started over from scratch. I've also used the BT file manager to download the htm file and it's there since I can, in the file manager, open it and see it. It is also in the BT_Docs file in eclipse. Yet, when I run the simulator I still get the message "error loading screen? the application had trouble understanding what to display." I guess, if there are no other ideas I'm going to take a break before I go mad. Thanks again for all the help.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 02:37 PM (12 years ago)
Sorry @stevek for the miscommunication here. Look in your BT control panel and tell me what screens you have there please? Also here is a documentation https://www.buzztouch.com/docs/v1.5/content.php LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 03:01 PM (12 years ago)
I have a lot of screens, but the pertinent ones are the home screen menu, a list screen called 2012 (which is portrayed as a rectangle with 9 orange buttons, and a screen called January 2012 which is portrayed with a rectangle and a <h> inside of it. I should note that another button I've created which when pressed go to an htm files does work! It's just this one, so far, that doesn't and I can see nothing different from the way i set it up than from the one that works. Also I'm used ver 2 to create this new app. BT doesn't seem to let me use 1.5 anymore - I wish it did since I'm used to that one.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 03:06 PM (12 years ago)
@stevek, Let me refer this to another developer. LA
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
01/27/13 03:08 PM (12 years ago)
under your .htm screen in control panel just type the name of your file: january2012.htm and hit save then make sure in eclipse you have that .htm file with graphics under the bt_docs folder
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 03:08 PM (12 years ago)
I have a lot of screens, but the pertinent ones are the home screen menu, a list screen called 2012 (which is portrayed as a rectangle with 9 orange buttons, and a screen called January 2012 which is portrayed with a rectangle and a <h> inside of it. I should note that another button I've created which when pressed go to an htm files does work! It's just this one, so far, that doesn't and I can see nothing different from the way i set it up than from the one that works. Also I'm used ver 2 to create this new app. BT doesn't seem to let me use 1.5 anymore - I wish it did since I'm used to that one.
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
01/27/13 03:10 PM (12 years ago)
"itemType":"BT_screen_htmlDoc", "itemNickname":"Coupons", "navBarTitleText":"Coupons", "localFileName":"coupons.htm"} this is similar to the json you'll have.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 03:17 PM (12 years ago)
All of that has been done. Actually in case you looking behind the scenes, the htm file I'm using to test is called march2013.htm since it's a much simpler file and I though trying a simple one would work, though it doesn't.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 03:20 PM (12 years ago)
This is the JSON - remember I'm using a simpler htm file March2013 despite the button name. {"itemId":"5945C1C6BCA2677FE23A6A2", "itemType":"BT_screen_htmlDoc", "itemNickname":"JANUARY 2012", "navBarTitleText":"JANUARY 2012", "navBarRightButtonType":"home", "navBarRightButtonTapLoadScreenNickname":"Home Screen Menu", "navBarRightButtonTapLoadScreenItemId":"CD075C16711C70564EF6156", "localFileName":"march2013.htm", "dataDetectorType":"0", "loginRequired":"0", "hideFromSearch":"0"}
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/27/13 03:23 PM (12 years ago)
It's mostly file location, or I suspect 'lack' of file location. Although you 'upload' your files into the BT Control panel, keep in mind that when you download your source code, those files are still NOT included. All documents, wav/mp3 files, images, whatever, will 'still' need to be added into your project. Along the instructions by GoNorthWest's 'Adding Files' Tutorial: https://www.buzztouch.com/files/howtos/Adding_Files_To_A_Project_v1.0.pdf add the files you referenced in your app to the BT_Docs, BT_Audio, etcetera of your project. Once they have been added - And the App 'knows' they've been added, your problems will go away. Hope this helps and let us know how it goes! Cheers! -- Smug
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 03:28 PM (12 years ago)
I have dragged all the files, including this march2013.htm to Eclipse, under the BT-Docs folder. It's there, I can double click on it and eclipse shows me what's in it. I've cleaned the app and done everything I know how to make sure the App knows they've been added other than doing what I've done. The only other thing I can think of is deleting all the files and then recompiling in BT and starting over.
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
01/27/13 03:29 PM (12 years ago)
Also make sure your bt config file is updated in eclipse also.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 03:35 PM (12 years ago)
If it's an older App, then I believe you have to start a new App and reconfigure everything. There is no shortcut converting a 1.5 to a 2.0 App. LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 03:45 PM (12 years ago)
I'm not converting. I started writing it from scratch with BT. I just using the old htm and jpg files. That shouldn't make a difference. However, I just tried to add a menu item but even though it's saved, and the simulator tells me that things changed and it refreshes, there are no changes seen afterward. Somehow, the simulator is not getting these new changes. I wonder if that's related to all this.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 03:57 PM (12 years ago)
@stevek, Sync your config file and see if that works. LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 04:07 PM (12 years ago)
Well, I deleted the files and redownloaded source code and Eureka, all is well. Have no idea why. Worry as I continue to change things it won't show up and I'll have to redo this again and again. Just for future reference, how do you sync the config file?
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 04:10 PM (12 years ago)
Yep, for some reason, when I make changes and go to the simulator, even though it says the apps content has changed and refreshes and reloads, the changes don't show! I just made a small change and nothing, despite the simulator telling me otherwise. This was probably the whole problem. Can someone figure out why the changes are not being made in the simulator?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 04:12 PM (12 years ago)
Go to your Config. Data link on your control panel and then copy the data, without changing anything, then go to your folder of your package on your computer and click on assets then open config file and delete the data and paste then save. Do a project clean. LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 04:14 PM (12 years ago)
I also went to config.data and looked at the live link and it says there isn't a live link. Is this the problem and if so how do i fix it?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 04:31 PM (12 years ago)
You don't want to use live until your ready to publish. Use design. LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 05:03 PM (12 years ago)
Ok but do you have any idea as to why I'm not really refreshing when the simulator says I am. I don't want to cut and paste all the time. With iOS the refreshing always worked on the simulator
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 05:13 PM (12 years ago)
Click on the menu button on your emulator and it should say on the screen refresh. LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 05:51 PM (12 years ago)
I guess I'm just not used to Android, but I see no menu button on the emulation screen where the app is running.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/27/13 08:49 PM (12 years ago)
Hi Steve, Android is certainly a different beast than iOS! You've already stumbled on the fact that Android uses a software back button (hardware on some earlier devices). Each screen does have a menu button...for the emulator, it's like the third button to the right from the one that looks like a house (but I'm doing that from memory). As far as your screen not refreshing, this may have to do with the new live/design mode feature that was implemented. Are you seeing anything in LogCat that would indicate why things are not refreshing? That's the best place to start looking. Mark
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 09:01 PM (12 years ago)
Mark, Actually I'm testing on 2 emulators -- 1 for 5.1 wvga 480 X800 and 2 for galaxy nexus 720 x 1280. The first shows no menu buttons at all, the second has all the buttons including the menu and home etc but pressing on them in the emulator does nothing.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/27/13 09:17 PM (12 years ago)
Nothing at all? Nothing logged to LogCat? 'Something' must be happening...we just need to determine what it is. Try clearing LogCat, then hitting the Refresh button, and then pasting here whatever you see in LogCat. Mark
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 09:22 PM (12 years ago)
Mark, Actually I'm testing on 2 emulators -- 1 for 5.1 wvga 480 X800 and 2 for galaxy nexus 720 x 1280. The first shows no menu buttons at all, the second has all the buttons including the menu and home etc but pressing on them in the emulator does nothing.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 09:27 PM (12 years ago)
When I said nothing, I meant the buttons that usually show on the right of the emulator screen, the ones that look like a control pad. They only show on the galaxy simulator. Anyway, I just made a trivial change to my app telling it not to scroll a page on a certain screen. I ran the app, the screen said to refresh and I did. This is from the LogCat - it appears that no refresh is needed, which doesn't make sense to me. Maybe it will to you 01-27 23:23:28.734: W/ZZ(302): skyeventfinderandroid_appDelegate: onCreate 01-27 23:23:28.734: W/ZZ(302): skyeventfinderandroid_appDelegate:loadAudioPlayer 01-27 23:23:28.744: W/ZZ(302): BT_application: Creating root-app object. 01-27 23:23:28.744: W/ZZ(302): BT_device: Creating root-device object. 01-27 23:23:28.754: W/ZZ(302): BT_device: This device uses an Android display density of: 160dpi (dots per inch) 01-27 23:23:28.754: W/ZZ(302): BT_device: This device can take pictures. 01-27 23:23:28.754: W/ZZ(302): BT_device: This device can take videos. 01-27 23:23:28.754: W/ZZ(302): BT_device: This device can send emails. 01-27 23:23:28.754: W/ZZ(302): BT_device: This device is GPS capable. 01-27 23:23:28.754: W/ZZ(302): BT_user: Creating root-user object. 01-27 23:23:28.783: W/ZZ(302): BT_activity_root:onCreate 01-27 23:23:28.813: W/ZZ(302): BT_activity_root:loadAppData 01-27 23:23:28.853: W/ZZ(302): BT_device:updateDeviceConnectionType: ConnectionType: CELL 01-27 23:23:28.853: W/ZZ(302): BT_device:updateDeviceSize This device has a screen size of: 480 (width) x 800 (height). 01-27 23:23:28.853: W/ZZ(302): BT_device:updateDeviceSize This application considers this to be a "small device" 01-27 23:23:28.853: W/ZZ(302): BT_device:updateDeviceSize This device is in "portrait" orientation. 01-27 23:23:28.853: W/ZZ(302): BT_activity_root:loadAppData loading BT_config.txt from /assests folder in Eclipse project... 01-27 23:23:28.973: W/ZZ(302): BT_fileManager: readTextFileFromAssets: "/BT_config.txt" 01-27 23:23:29.003: W/ZZ(302): BT_activity_root:loadAppData loaded BT_config.txt from /assets folder successfully... 01-27 23:23:29.003: W/ZZ(302): BT_application: getDataURLFromAppData 01-27 23:23:29.243: D/dalvikvm(302): GC_FOR_MALLOC freed 2487 objects / 304344 bytes in 205ms 01-27 23:23:29.293: W/ZZ(302): BT_activity_root:loadAppData BT_config.txt file does use a dataURL for remote updates... 01-27 23:23:29.303: W/ZZ(302): BT_activity_root:loadAppData cachedAppConfig.txt does not exist in the cache... 01-27 23:23:29.303: W/ZZ(302): BT_application: validateApplicationData 01-27 23:23:29.373: W/ZZ(302): BT_activity_root: application data appears to be valid JSON... 01-27 23:23:29.373: W/ZZ(302): BT_application: parseJSONData 01-27 23:23:29.393: W/ZZ(302): BT_application: parsing core settings... 01-27 23:23:29.403: W/ZZ(302): BT_application: parsing themes... 01-27 23:23:29.403: W/ZZ(302): BT_application: parsing tabs... 01-27 23:23:29.403: W/ZZ(302): BT_application: parsing screens... 01-27 23:23:29.403: W/ZZ(302): BT_application:parseJSONData done parsing application data 01-27 23:23:29.403: W/ZZ(302): BT_activity_root:transitionToAppHomeScreen 01-27 23:23:29.403: W/ZZ(302): BT_activity_root:transitionToAppHomeScreen non-tabbed home screen. 01-27 23:23:29.403: W/ZZ(302): BT_application: getHomeScreen 01-27 23:23:29.495: W/ZZ(302): BT_activity_base:onCreate (BASE CLASS) 01-27 23:23:29.513: W/ZZ(302): BT_screen_menuListSimple:onCreate 01-27 23:23:29.513: W/ZZ(302): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: "Home Screen Menu" 01-27 23:23:29.513: W/ZZ(302): BT_viewUtilities:updateBackgroundColorsForScreen: setting background color to: "#000000" 01-27 23:23:29.513: W/ZZ(302): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: "Home Screen Menu" 01-27 23:23:29.533: W/ZZ(302): BT_screen_menuListSimple:backgroundWorkerThread this screen does not use a background image 01-27 23:23:29.573: W/ZZ(302): BT_fileManager:deleteFile CD075C16711C70564EF6156_screenData.txt 01-27 23:23:29.614: W/ZZ(302): BT_screen_menuListSimple:onStart (BASE CLASS) 01-27 23:23:29.614: W/ZZ(302): BT_screen_menuListSimple: start GPS is set to NO in the applications configuration data, not starting GPS 01-27 23:23:29.626: W/ZZ(302): BT_screen_menuListSimple:onStart using data from app's configuration file 01-27 23:23:29.626: W/ZZ(302): BT_screen_menuListSimple:parseScreenData 01-27 23:23:29.626: W/ZZ(302): BT_screen_menuListSimple:onResume (BASE CLASS) 01-27 23:23:29.626: W/ZZ(302): BT_screen_menuListSimple:reportToCloud 01-27 23:23:29.654: W/ZZ(302): BT_screen_menuListSimple:reportToCloudWorkerThread getting lastModified from reportToCloudURL https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA6732B2A634D9B013A7F4DA8&apiKey=CE052C5094AE03A6F97FC97&apiSecret=7A5E001D163224DBCD55908&deviceId=&deviceLatitude=&deviceLongitude=&deviceModel=generic-google_sdk&userId=&currentMode=Design 01-27 23:23:29.654: W/ZZ(302): BT_downloader:downloadTextData from URL: https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA6732B2A634D9B013A7F4DA8&apiKey=CE052C5094AE03A6F97FC97&apiSecret=7A5E001D163224DBCD55908&deviceId=&deviceLatitude=&deviceLongitude=&deviceModel=generic-google_sdk&userId=&currentMode=Design 01-27 23:23:30.294: W/ZZ(302): skyeventfinderandroid_appDelegate:SoundEffectLoader:doInBackground initSoundEffects 01-27 23:23:30.314: W/ZZ(302): skyeventfinderandroid_appDelegate:SoundEffectLoader:doInBackground initSoundEffects DISABLED 01-27 23:23:30.454: D/dalvikvm(302): GC_FOR_MALLOC freed 7670 objects / 341072 bytes in 136ms 01-27 23:23:30.813: W/ZZ(302): BT_screen_menuListSimple:handleReportToCloudResults appLastModifiedOnServer (value on server): Mon, 28 Jan 2013 04:24:16 -0800 01-27 23:23:30.813: W/ZZ(302): BT_fileManager: readTextFileFromCache: "appModified.txt" 01-27 23:23:30.813: W/ZZ(302): BT_screen_menuListSimple:handleReportToCloudResults previousModified (value on device): Mon, 28 Jan 2013 03:11:29 -0800 01-27 23:23:30.813: W/ZZ(302): BT_fileManager: saveTextFileToCache: appModified.txt 01-27 23:23:30.823: W/ZZ(302): BT_screen_menuListSimple:handleReportToCloudResults server data changed, app needs refreshed 01-27 23:23:33.483: W/ZZ(302): BT_screen_menuListSimple:refreshAppData 01-27 23:23:33.513: W/ZZ(302): BT_screen_menuListSimple:onPause (BASE CLASS) 01-27 23:23:33.577: W/ZZ(302): BT_activity_root:onCreate 01-27 23:23:33.624: W/ZZ(302): BT_activity_root:refreshing... 01-27 23:23:33.624: W/ZZ(302): BT_activity_root:loadAppData 01-27 23:23:33.663: W/ZZ(302): BT_device:updateDeviceConnectionType: ConnectionType: CELL 01-27 23:23:33.663: W/ZZ(302): BT_device:updateDeviceSize This device has a screen size of: 480 (width) x 800 (height). 01-27 23:23:33.674: W/ZZ(302): BT_device:updateDeviceSize This application considers this to be a "small device" 01-27 23:23:33.674: W/ZZ(302): BT_device:updateDeviceSize This device is in "portrait" orientation. 01-27 23:23:33.674: W/ZZ(302): BT_activity_root:loadAppData loading BT_config.txt from /assests folder in Eclipse project... 01-27 23:23:33.934: W/ZZ(302): BT_screen_menuListSimple:onStop (BASE CLASS) 01-27 23:23:33.934: W/ZZ(302): BT_screen_menuListSimple:onDestroy (BASE CLASS) 01-27 23:23:34.114: W/ZZ(302): BT_fileManager: readTextFileFromAssets: "/BT_config.txt" 01-27 23:23:34.204: W/ZZ(302): BT_activity_root:loadAppData loaded BT_config.txt from /assets folder successfully... 01-27 23:23:34.224: W/ZZ(302): BT_application: getDataURLFromAppData 01-27 23:23:34.394: D/dalvikvm(302): GC_FOR_MALLOC freed 4237 objects / 452656 bytes in 122ms 01-27 23:23:34.474: W/ZZ(302): BT_activity_root:loadAppData BT_config.txt file does use a dataURL for remote updates... 01-27 23:23:34.494: W/ZZ(302): BT_activity_root:loadAppData cachedAppConfig.txt does not exist in the cache... 01-27 23:23:34.494: W/ZZ(302): BT_application: validateApplicationData 01-27 23:23:34.614: W/ZZ(302): BT_activity_root: application data appears to be valid JSON... 01-27 23:23:34.614: W/ZZ(302): BT_application: parseJSONData 01-27 23:23:34.703: W/ZZ(302): BT_application: parsing core settings... 01-27 23:23:34.703: W/ZZ(302): BT_application: parsing themes... 01-27 23:23:34.723: W/ZZ(302): BT_application: parsing tabs... 01-27 23:23:34.723: W/ZZ(302): BT_application: parsing screens... 01-27 23:23:34.733: W/ZZ(302): BT_application:parseJSONData done parsing application data 01-27 23:23:34.753: W/ZZ(302): BT_activity_root:loadAppDataWorkerThread downloading app data from: https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA6732B2A634D9B013A7F4DA8&apiKey=CE052C5094AE03A6F97FC97&apiSecret=7A5E001D163224DBCD55908&currentMode=Design 01-27 23:23:34.753: W/ZZ(302): BT_downloader:downloadTextData from URL: https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA6732B2A634D9B013A7F4DA8&apiKey=CE052C5094AE03A6F97FC97&apiSecret=7A5E001D163224DBCD55908&currentMode=Design 01-27 23:23:34.843: W/ZZ(302): BT_activity_root:loadAppDataWorkerThread ERROR (7) downloading data from: https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA6732B2A634D9B013A7F4DA8&apiKey=CE052C5094AE03A6F97FC97&apiSecret=7A5E001D163224DBCD55908&currentMode=Design 01-27 23:23:34.853: W/ZZ(302): BT_activity_root:transitionToAppHomeScreen 01-27 23:23:34.853: W/ZZ(302): BT_activity_root:transitionToAppHomeScreen non-tabbed home screen. 01-27 23:23:34.853: W/ZZ(302): BT_application: getHomeScreen 01-27 23:23:34.883: W/ZZ(302): BT_activity_base:onCreate (BASE CLASS) 01-27 23:23:34.913: W/ZZ(302): BT_screen_menuListSimple:onCreate 01-27 23:23:34.913: W/ZZ(302): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: "Home Screen Menu" 01-27 23:23:34.913: W/ZZ(302): BT_viewUtilities:updateBackgroundColorsForScreen: setting background color to: "#000000" 01-27 23:23:34.913: W/ZZ(302): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: "Home Screen Menu" 01-27 23:23:34.943: W/ZZ(302): BT_screen_menuListSimple:backgroundWorkerThread this screen does not use a background image 01-27 23:23:34.943: W/ZZ(302): BT_fileManager:deleteFile CD075C16711C70564EF6156_screenData.txt 01-27 23:23:34.953: W/ZZ(302): BT_screen_menuListSimple:onStart (BASE CLASS) 01-27 23:23:34.953: W/ZZ(302): BT_screen_menuListSimple: start GPS is set to NO in the applications configuration data, not starting GPS 01-27 23:23:34.973: W/ZZ(302): BT_screen_menuListSimple:onStart using data from app's configuration file 01-27 23:23:34.973: W/ZZ(302): BT_screen_menuListSimple:parseScreenData 01-27 23:23:34.973: W/ZZ(302): BT_screen_menuListSimple:onResume (BASE CLASS) 01-27 23:23:34.973: W/ZZ(302): BT_screen_menuListSimple:reportToCloud 01-27 23:23:34.983: W/ZZ(302): BT_screen_menuListSimple:reportToCloudWorkerThread getting lastModified from reportToCloudURL https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA6732B2A634D9B013A7F4DA8&apiKey=CE052C5094AE03A6F97FC97&apiSecret=7A5E001D163224DBCD55908&deviceId=&deviceLatitude=&deviceLongitude=&deviceModel=generic-google_sdk&userId=&currentMode=Design 01-27 23:23:35.003: W/ZZ(302): BT_downloader:downloadTextData from URL: https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA6732B2A634D9B013A7F4DA8&apiKey=CE052C5094AE03A6F97FC97&apiSecret=7A5E001D163224DBCD55908&deviceId=&deviceLatitude=&deviceLongitude=&deviceModel=generic-google_sdk&userId=&currentMode=Design 01-27 23:23:35.233: E/WindowManager(302): Activity com.skyeventfinderandroid.BT_activity_root has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@43e36450 that was originally added here 01-27 23:23:35.233: E/WindowManager(302): android.view.WindowLeaked: Activity com.skyeventfinderandroid.BT_activity_root has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@43e36450 that was originally added here 01-27 23:23:35.233: E/WindowManager(302): at android.view.ViewRoot.<init>(ViewRoot.java:247) 01-27 23:23:35.233: E/WindowManager(302): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148) 01-27 23:23:35.233: E/WindowManager(302): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 01-27 23:23:35.233: E/WindowManager(302): at android.view.Window$LocalWindowManager.addView(Window.java:424) 01-27 23:23:35.233: E/WindowManager(302): at android.app.Dialog.show(Dialog.java:241) 01-27 23:23:35.233: E/WindowManager(302): at com.skyeventfinderandroid.BT_activity_root.showAlert(BT_activity_root.java:151) 01-27 23:23:35.233: E/WindowManager(302): at com.skyeventfinderandroid.BT_activity_root$3.run(BT_activity_root.java:470) 01-27 23:23:35.704: D/dalvikvm(302): GC_FOR_MALLOC freed 9226 objects / 454736 bytes in 109ms 01-27 23:23:35.924: W/ZZ(302): BT_screen_menuListSimple:handleReportToCloudResults appLastModifiedOnServer (value on server): Mon, 28 Jan 2013 04:24:16 -0800 01-27 23:23:35.924: W/ZZ(302): BT_fileManager: readTextFileFromCache: "appModified.txt" 01-27 23:23:35.924: W/ZZ(302): BT_screen_menuListSimple:handleReportToCloudResults previousModified (value on device): Mon, 28 Jan 2013 04:24:16 -0800 01-27 23:23:35.924: W/ZZ(302): BT_fileManager: saveTextFileToCache: appModified.txt 01-27 23:23:35.924: W/ZZ(302): BT_screen_menuListSimple:handleReportToCloudResults server data not changed, no refresh needed
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/27/13 11:11 PM (12 years ago)
Hi Steve, So, here's some annotated examples of what's happening: 01-27 23:23:28.853: W/ZZ(302): BT_activity_root:loadAppData loading BT_config.txt from /assests folder in Eclipse project... 01-27 23:23:28.973: W/ZZ(302): BT_fileManager: readTextFileFromAssets: "/BT_config.txt" 01-27 23:23:29.003: W/ZZ(302): BT_activity_root:loadAppData loaded BT_config.txt from /assets folder successfully... These lines say that the app has a BT_Config.txt shipped with it, and it's in the assets folder, which is exactly where it's supposed to be. The app was able to load and read the file with no problems. 01-27 23:23:29.003: W/ZZ(302): BT_application: getDataURLFromAppData 01-27 23:23:29.293: W/ZZ(302): BT_activity_root:loadAppData BT_config.txt file does use a dataURL for remote updates... This section says that when the BT_Config.txt file was read, it found a dataURL that should be queried for updates. This means the app is consider online, and not offline, which is a good thing! 01-27 23:23:29.303: W/ZZ(302): BT_activity_root:loadAppData cachedAppConfig.txt does not exist in the cache... When an update to the BT_Config.txt file is downloaded from the dataURL, it caches that config file. This line is reporting that no such file exists, so this is either the first time the app has been run, and thus the first time updated, or that previous updates failed to cache the data (I think...not 100% sure about that last part). 01-27 23:23:29.654: W/ZZ(302): BT_screen_menuListSimple:reportToCloudWorkerThread getting lastModified from reportToCloudURL (and then the URL) This line says the app has checked into the reportToCloudURL to see when the app was last updated (when a change was saved to the configuration at buzztouch.com) 01-27 23:23:30.813: W/ZZ(302): BT_screen_menuListSimple:handleReportToCloudResults appLastModifiedOnServer (value on server): Mon, 28 Jan 2013 04:24:16 -0800 01-27 23:23:30.813: W/ZZ(302): BT_fileManager: readTextFileFromCache: "appModified.txt" 01-27 23:23:30.813: W/ZZ(302): BT_screen_menuListSimple:handleReportToCloudResults previousModified (value on device): Mon, 28 Jan 2013 03:11:29 -0800 01-27 23:23:30.813: W/ZZ(302): BT_fileManager: saveTextFileToCache: appModified.txt 01-27 23:23:30.823: W/ZZ(302): BT_screen_menuListSimple:handleReportToCloudResults server data changed, app needs refreshed After checking the reportToCloudURL, the server says the last time the configuration file was updated was Mon, 28 Jan 2013 04:24:16 -0800. The code then checks the internal appModified.txt file, and finds that the last time it was updated was Mon, 28 Jan 2013 03:11:29 -0800. So, the app has been modified at buzztouch.com since the last time the app was updated on the device. That triggers an update request on the device, so the device and the buzztouch.com server can be in sync. 01-27 23:23:34.843: W/ZZ(302): BT_activity_root:loadAppDataWorkerThread ERROR (7) downloading data from: (rest of URL) For some reason, the app ran into an error downloading the new BT_Config.txt file. I followed the same link and was able to view the config file just fine. So, I'm not sure what the error here is. 01-27 23:23:35.233: E/WindowManager(302): Activity com.skyeventfinderandroid.BT_activity_root has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@43e36450 that was originally added here This is probably not good. I'm not entirely sure what this section means. But I'll do some research. The line that concerns me the most is 01-27 23:23:34.843: W/ZZ(302): BT_activity_root:loadAppDataWorkerThread ERROR (7) downloading data from: (rest of URL). I'll contact @David and see if he can figure out what's up. I'm not sure what ERROR (7) is. Take a break on this while we investigate that error. Thanks! Mark
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/28/13 12:48 AM (12 years ago)
Looked into this a bit: 1) DO NOT paste your entire logCat to the forum, it contains URl's with your app's API key and Secret, you dont' want to share this :-) In some cases somebody on the forum may ask you to post parts of it, it's best to wait for that request. This may have been made in this discussion..dunno, tons of chat. LOL. 2) Mark is right, the data for the app is not / was not being fully downloaded to the device. OR, it was downloaded and not saved properly on the device after downloading. Hard to say which of these is true. The dataURL (displayed in the LogCat you posted) does provide valid data, I just clicked it and tested it using the JSON Lint JSON validator tool. The data for the app validates fine. So..why isn't the data being downloaded? It's hard to say. The BT_activityRoot.java file in your project is where this is happening. After it downloads the data, it processes it starting on about line 437. You'll see where it checks to make sure it "has length > 5" and continues if it does. This is simple way to test if it's blank or not. If it's blank, it didn't download and you get the message on line 471 in the console. This means it's a matter of figuring out why this device cant' download or save the data.
 

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.