Discussion Forums  >  Images, Documents, File Locations

Replies: 25    Views: 194

RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
07/29/12 12:13 PM (13 years ago)

Splash screen

I don't know if this is the correct place for this topic, but I'm interested in showing a full screen image with the initial screen of application before entering the menu and thought that the splash screenc is the simplest solution, but this screen not appears when I simulate the application in the eclipse (no error message/no problems). What should be the problem? Logically, it would be the first screen to be displayed in the app, right? Thank you
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/29/12 12:14 PM (13 years ago)
Have you recompiled the app after you added the screen and the image? Fred
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/29/12 03:04 PM (13 years ago)
I added the splash screen before compiling the app in eclipse
 
prakalp
buzztouch Evangelist
Profile
Posts: 7
Reg: Jul 20, 2012
Oslo
2,370
like
07/29/12 03:27 PM (13 years ago)
So, finally I see someone in the same boat. Here is where I am at. The intention was to have a splashscreen right after initializing the app. The image for the splashscreen is locked & loaded. In fact, I have tried two things: 1) In BT, Upload a file, Create a screen from the Splashscreen plugin, add the file to this screen, prepare the package & then download it. In XCode, add the plugins folder to the project & 'Build&Run'. Result : No image displayed 2) In XCode, under the Summary tab, when the project is highlighted, drag & drop the image file onto the appropriate screen icons. Result : No Image is displayed. I suspect that the image must be exactly the size of the display. Would be nice to have that confirmed.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/29/12 04:28 PM (13 years ago)
I suspect that the image must be exactly the size of the display. Would be nice to have that confirmed. Not so. Fred
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/29/12 04:29 PM (13 years ago)
Is the Config file up to date? Fred
 
prakalp
buzztouch Evangelist
Profile
Posts: 7
Reg: Jul 20, 2012
Oslo
2,370
like
07/29/12 04:48 PM (13 years ago)
Ok. No dependencies to the size of the image. Will check config file.
 
prakalp
buzztouch Evangelist
Profile
Posts: 7
Reg: Jul 20, 2012
Oslo
2,370
like
07/29/12 04:54 PM (13 years ago)
Ref config file : following line from the BT_config.txt "backgroundImageNameSmallDevice":"46_640x940.png", "backgroundImageScale":"fullScreenPreserve"} So the config file is updated with the img reference.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/29/12 04:55 PM (13 years ago)
Where is your image file? I'm not iOS so, what does this mean: drag & drop the image file onto the appropriate screen icons. Does it mean you've added the image file to Xcode? Try this when I wish to test a image feature and I'm not near my laptop I use an image already embedded in the app. So use an image you've already added for purpose just to test. Fred
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/29/12 06:19 PM (13 years ago)
I am developing for android. what is the right place to store the images in the project? added two images with different sizes (small (480) and large device (960)) Thanks
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/29/12 09:17 PM (13 years ago)
For BTv2.0 Android they go in the drawable folder in the res folder. Fred
 
prakalp
buzztouch Evangelist
Profile
Posts: 7
Reg: Jul 20, 2012
Oslo
2,370
like
07/30/12 01:25 AM (13 years ago)
@ Fred, good tip. Will try that. @ RB, not the intention to hijack your thread. Just saw that the issue was the same. I found a post by GoNorthWest with the following link, which describes how to add files to both Xcode & Eclipse. http://www.buzztouch.com/resources/Adding_Files_To_A_Project_v1.0.pdf
 
prakalp
buzztouch Evangelist
Profile
Posts: 7
Reg: Jul 20, 2012
Oslo
2,370
like
07/30/12 01:46 AM (13 years ago)
@ Fred, good tip. Will try that. @ RB, not the intention to hijack your thread. Just saw that the issue was the same. I found a post by GoNorthWest with the following link, which describes how to add files to both Xcode & Eclipse. http://www.buzztouch.com/resources/Adding_Files_To_A_Project_v1.0.pdf
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/30/12 04:04 AM (13 years ago)
No problem, prakalp. The purpose is the same. Thanks, Fred.
 
prakalp
buzztouch Evangelist
Profile
Posts: 7
Reg: Jul 20, 2012
Oslo
2,370
like
07/30/12 05:10 AM (13 years ago)
@ Fred, good tip. Will try that. @ RB, not the intention to hijack your thread. Just saw that the issue was the same. I found a post by GoNorthWest with the following link, which describes how to add files to both Xcode & Eclipse. http://www.buzztouch.com/resources/Adding_Files_To_A_Project_v1.0.pdf
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/30/12 05:54 AM (13 years ago)
I put the images in the "res" folder but the "splash screen" not appeared. Keeps going directly to the menu.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/30/12 06:01 AM (13 years ago)
Post your Config data. Fred
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/30/12 06:06 AM (13 years ago)
{"BT_appConfig": { "BT_items":[ {"itemId":"JA4D66665331171D8C87A6662", "itemType":"BT_app", "buzztouchAppId":"JA4D66665331171D8C87A6662", "buzztouchAPIKey":"4F3E147F48ED9F7A63C6DAE", "dataURL":"http://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA4D66665331171D8C87A6662&apiKey=4F3E147F48ED9F7A63C6DAE&apiSecret=BE928E4E884E7257E9DC31C", "reportToCloudURL":"http://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA4D66665331171D8C87A6662&apiKey=4F3E147F48ED9F7A63C6DAE&apiSecret=BE928E4E884E7257E9DC31C&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "name":"Animus", "version":"2.0", "startLocationUpdates":"0", "allowRotation":"largeDevicesOnly", "BT_themes":[{"itemId":"0016BAEFD95C6ABB5C67D14", "itemType":"BT_theme", "backgroundColor":"#FFFFFF"} ], "BT_tabs":[ ], "BT_screens":[{"itemId":"8527C6F2102A71EC2949D7B", "itemType":"BT_screen_menuListSimple", "itemNickname":"Menu", "navBarTitleText":"Menu", "childItems":[{"itemId":"0E766FDCA739C7C94B0FC72", "itemType":"BT_menuItem", "loadScreenWithItemId":"C224F5683AB0A9CCE4F9E98","titleText":"Teste"}, {"itemId":"9079DF99E3AECB47FB63E4F", "itemType":"BT_menuItem", "loadScreenWithItemId":"70C6BA105E679E005A5F372","titleText":"JavaScript Random"}, {"itemId":"6E01E403ACC14CF84CDB002", "itemType":"BT_menuItem", "loadScreenWithItemId":"F92A15718957B114EB2DCE8","titleText":"Contato"}]}, {"itemId":"70C6BA105E679E005A5F372", "itemType":"BT_screen_htmlDoc", "itemNickname":"Animus", "localFileName":"main_menu.html", "navBarTitleText":"js", "forceRefresh":"1"}, {"itemId":"C224F5683AB0A9CCE4F9E98", "itemType":"BT_screen_htmlDoc", "itemNickname":"HTML Random", "localFileName":"teste.html", "navBarTitleText":"Menu", "forceRefresh":"1", "backgroundColor":"#FFCC00"}, {"itemId":"BBB4A8908B5530CFBAD391A", "itemType":"BT_screen_splash", "itemNickname":"Splash", "startTransitionAfterSeconds":"1", "transitionDurationSeconds":"1", "transitionType":"fade", "backgroundColor":"#000000", "backgroundImageNameSmallDevice":"animus_pq.jpg", "backgroundImageNameLargeDevice":"animus.jpg", "backgroundImageScale":"fullScreenPreserve"}, {"itemId":"F92A15718957B114EB2DCE8", "itemType":"BT_sendEmail", "itemNickname":"Contato", "emailSubject":"question about your app...", "emailToAddress":"[email protected]"} ] } ] } }
 
prakalp
buzztouch Evangelist
Profile
Posts: 7
Reg: Jul 20, 2012
Oslo
2,370
like
07/30/12 06:37 AM (13 years ago)
RB, Fred, could the animation settings be the culprit here? I am thinking, if these were not maintained RB, perhaps the splashscreen is not visible because the time window is too small. I usually put "Begin Transition Seconds" to -1 and the "Transition Duration" to 20 (I assume it is seconds). This works ok. BTW, I have managed to get the background image to load in the simulator. Now trying to deploy to device (need to get the provisioning profile in place). P
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/30/12 06:39 AM (13 years ago)
Your splash screen is not added to the theme. Here's what it should look like: "BT_themes":[{"itemId":"445E2456489D8958BC923A6", "itemType":"BT_theme", "itemNickname":"Default Theme", "splashScreenItemId":"EC4EE70AE71AA226C0FF1C2", "splashScreenNickname":"Splash", "statusBarStyle":"default", "navBarStyle":"solid", "toolbarStyle":"solid", "backgroundColor":"#FFFFFF"} Fred
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/30/12 06:48 AM (13 years ago)
Fred: I need to create a theme before? is necessary? prakalp:I´ll try to change the splash settings like you did. Thanks
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/30/12 06:57 AM (13 years ago)
Thanks Fred e prakalp. The splash screen is ok. I linked the splash to the theme and change the antimations settings.
 
doubleE
Veteran developer
Profile
Posts: 14
Reg: Jul 27, 2012
Fort Myers, FL
9,740
like
07/30/12 01:00 PM (13 years ago)
I am also a little confused as the right way to do splash screens with BT. Do I?: 1) Replace the default.png and [email protected] files in the BT_Art folder. -or- 2) Create a Splash screen in BT UI and make sure the file I upload is in the BT_Images folder. -or- 3) In the Xcode -> Build settings windows drag my splash screens over the icons there which create the default.png file at the root folder. Getting confused as to what is the right way to do it. Any help is appreciated. Thanks, EE
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/30/12 01:14 PM (13 years ago)
1) Replace the default.png and [email protected] files in the BT_Art folder. IOS provides this has nothing to do with Buzztouch, use if you please. 2) Create a Splash screen in BT UI and make sure the file I upload is in the BT_Images folder (Android is different) Buzztouch provides a Splash Screen as in all screens use as appropriate. 3) In the Xcode -> Build settings windows drag my splash screens over the icons there which create the default.png file at the root folder. This is same as #1 Fred
 
doubleE
Veteran developer
Profile
Posts: 14
Reg: Jul 27, 2012
Fort Myers, FL
9,740
like
07/30/12 02:18 PM (13 years ago)
Thanks for the quick reply Fred but this is still not 100% clear. I guess what is still confusing me is what is "optional" versus "required" for a splash screen. If I did it all three ways listed with 3 different default.png files will all three be displayed consecutively? Is each approach designed to tackle a different scenarios? Thanks, EE
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/30/12 02:25 PM (13 years ago)
If I did it all three ways listed with 3 different default.png files will all three be displayed consecutively? Is each approach designed to tackle a different scenarios? 3 is 1, therefore only two methods. Different .png files different size screens. Only one will show. The default .png could be all black or have a image which is effectively a Splash Screen. The Buzztouch Splash Screen has it's setting which may be more appropriate. Fred
 

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.