Discussion Forums  >  Uncategorized

Replies: 9    Views: 360

rarrrr123
I hate code!
Profile
Posts: 78
Reg: May 22, 2011
location unknow...
780
11/22/11 03:21 PM (14 years ago)

BT Server App: Crash

Hi all, I am having a few problems with BT server made app. All set up, running latest version, plug ins etc. When creating the android app, all fine with correct APIs etc. When testing on the emulator I get a blank screen and nothing. Also packaged up the app and tried it on an actual phone - same thing. I decided to then remove the splash screen in case it was that. No joy. Now it says the app has suddenly closed after an error. I have uploaded the package code and wondered if someone would be able to see where I have gone wrong. I can't seem to find a single problem (probably looking too closely now - fresh eyes would be a massive help). http://conyerstalkspace.com/conandapp.zip Thanks a lot :)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/22/11 08:58 PM (14 years ago)
Looking at this. Glad to see the post actually, early days expose lots of mysteries ;-) I'll post a reply shortly...
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/22/11 09:08 PM (14 years ago)
OK. I downloaded the project and see exactly what you're referring to. The LogCat shows this: 11-22 20:04:25.362: WARN/ZZ(304): BT_application:getScreenDataByItemId could not find screen with itemId: 1EE29F055FE9B515977ECE4 Get good at using the LogCat, it outputs all sorts of cool stuff we spent hundreds of hours coding so you could see exactly what's going on. Anyway, I searched the BT_config.txt file that shipped with the download, there is no screen with itemId: 1EE29F055FE9B515977ECE4. This is the splashScreenItemId in the theme, also in the JSON data. One of two things is happening: a) Your list of screens does not have an item with this ID. Maybe it did and it got removed AFTER setting it as the splash screen in the theme? b) The packager is not finding this screen when it build the app. All it needs to do is add it to the BT_config.txt file's list of screens. Have a look at the apps configuration data screen, the one that shows all the JSON data. Is there a screen in this list with itemId: 1EE29F055FE9B515977ECE4 The data on that screen should be an exact match of the data in the project that I just saw (unless it's been changed already). My money's on the splash screen being removed ;-)
 
rarrrr123
I hate code!
Profile
Posts: 78
Reg: May 22, 2011
location unknow...
780
like
11/23/11 01:17 AM (14 years ago)
Ah OK. There is indeed. Can I just remove that bit splashScreenItemId:1EE29F055FE9B515977ECE4 from the config (newbie to this, sorry). I did remove the splash screen and removed it from the config, but that was because the app was just showing a blank screen when the app loaded (on this version: http://www.conyersbite.co.uk/app/ConyersApp2.2.apk). I figured the splash screen just didnt work so by removing it, I thought it would remove it from the config too?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/23/11 09:22 AM (14 years ago)
So, the idea is that when you download your code for your project the Config Data that shows in the contorl panel will match the contents of the BT_config.txt file in the project. If you make a change in your control panel the contents no longer match. This is normal. When you click the refresh button in the app you are fetching the latest copy of the config data and saving it to the device. When you compile > run, the app will ALWAYS launch (for the first time) using the config data in the project, not the data in the control panel. This is why it's important that they match when you compile if things have been changed. So, the best way to update the config data in the project is do do what you did, copy it from the Config Data screen in your control panel. There is a relationship between the splash screen in the list of screens (we're talking config data here), and the splashScreenItemid in the theme. Again, in the JSON data. If you remove the splash screen from the config data, you need to also make sure the theme does not look for it. Do this by removing the splashScreenItemId from the theme. Dont' worry about trying to understand or edit the config data in the project in Xcode. Just make a change in your control panel (remove splash, update theme to not use splash), save, then copy the data to the project. Next, after making changes in the contorl panel, use the refresfh button in the app. When you're all done, and ready to finalize / submit your app, just make sure the config data in the project matches the control panel and you'll be fine.
 
rarrrr123
I hate code!
Profile
Posts: 78
Reg: May 22, 2011
location unknow...
780
like
11/23/11 03:13 PM (14 years ago)
I will give that a go thanks. I did remove it from the screens page and removed it from the theme settings too, which is why I got a bit confused. Will give it a fiddle and try again. Thanks so much.
 
rarrrr123
I hate code!
Profile
Posts: 78
Reg: May 22, 2011
location unknow...
780
like
11/23/11 03:55 PM (14 years ago)
Hey, I have tried it again, this time, creating a new splash screen, and updating it in the theme. All I get is a blank screen when the app loads. This is back to how I had it before I removed the splash screen :-( I have had a look through the config but I just can't see what's wrong? Uploaded the updated package to: http://conyerstalkspace.com/conandapp.zip Any help would be massively appreciated on this one. The app version I have on buzztouch.com works fine. This is hurting my head now :( Thanks in advance.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/23/11 09:40 PM (14 years ago)
Head hurts - yikes. It for sure gets confusing sometimes. It'll all make sense soon enough. So, I downloaded your project, opened it, and didn't even compile it. I can see an issue right away. I rolled through the JSON data in the config file and found the JSON information for the splash screen you're using. The splash screen you connected to your theme. It looks like this: {itemId:BF357F8C95A53EE71B094BB, itemType:BT_screen_splash, itemNickname:LoadScreen, startTransitionAfterSeconds:1, transitionDurationSeconds:1, transitionType:fade, backgroundColor:#000000, backgroundImageNameSmallDevice:splash.png, backgroundImageURLSmallDevice:http://buzztouch.conyerstalkspace.com/files/applications/EA4797246B864E9CAD7FD139B/images/splash.png, backgroundImageNameLargeDevice:splash.png, backgroundImageURLLargeDevice:http://buzztouch.conyerstalkspace.com/files/applications/EA4797246B864E9CAD7FD139B/images/splash.png, backgroundImageOpacity:0, backgroundImageScale:center} The forum will remove the double quotes so ignore that. The importnat thing to understand...this JSON data describes ONE screen, the splash screen. You'll see a JSON object like this for each screen in the list. That's the whole idea behind the JSON, it holds all the behavior and layout information for every screen. Each screen has it's own object like the one I pasted above. So, what's wrong with this one. Have a look at the backgroundColor, backgroundImageNameSmallDevice, and backgroundImageURLSmallDevice. The value for the background is #000000 (black), that explains the black screen. The value for the image is screwy. First, it should only have a value for backgroundImageNameSmallDevice OR backgroundImageURLSmallDevice, not both. You either use an image you added to the /drawable directory in Android, OR you download one from a URL. You have both of these entered. Additionally, have a look at the backgroundImageURLSmallDevice value. You have a very very broken URL here http://buzztouch.conyerstalkspace.com/files/applications/EA4797246B864E9CAD7FD139B/images/splash.png for sure is not a valid URL. You did the same thing for the large device settings.
 
rarrrr123
I hate code!
Profile
Posts: 78
Reg: May 22, 2011
location unknow...
780
like
11/24/11 03:28 PM (14 years ago)
Hi David, Thanks for that. It actually really helped my understanding of the data. I am still at a massive loss with it. I have been right through the app, removed the URLs and all the black background colour refs and it still gets a black screen. I have been through every page and I cannot find anything. I have even tried reading the JSON data line by line to see. I have added the new package to: conyerstalkspace.com/conandapp.zip I am only trying to recreate the app which i made on buzztouch.com which works OK in 1.4 (http://www.conyersbite.co.uk/app/ConyersAndroidAppv2.apk). It is proving to be a big problem. It is a big ask I know, but would you be able to have another look and see where I am going wrong. I am REALLY sorry to have to keep asking. I just cannot see what I am doing wrong. Thanks in advance.
 
rarrrr123
I hate code!
Profile
Posts: 78
Reg: May 22, 2011
location unknow...
780
like
11/24/11 03:49 PM (14 years ago)
Actually, got a little bit further. Deleted the theme and created a new one. Menu loads. Yay! Only thing is, I dont get the top heading image which I have done on the 2.4 app in the past. Anyone know where I set this? Put a screenshot of what I am aiming for from my 2.4 app (conyerstalkspace.com/ssheader.jpg) As it stands, I just get the menu. I have tried different image settings but I am lost. Clearly I need a different hobby!
 

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.