Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 13    Views: 136

sanamionline
Aspiring developer
Profile
Posts: 61
Reg: Jul 22, 2012
Yulin, Guangxi
3,510
02/06/13 09:56 AM (12 years ago)

Splash screen plugin

I've been trying to get the splash screen work on android and iOS but still can't get the images to show up. First of all does the splash screen need linking or is it defaulted to be the first screen and on tap takes the user to the menu? Where do the splash images go for iOS bt_screen_splash? for android? Thanks
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
02/06/13 10:17 AM (12 years ago)
For iOS, I actually recommend using the Xcode settings to choose the splash screen. The Images go in the BT_Images file in Xcode
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/06/13 10:26 AM (12 years ago)
It needs to be set in the global theme settings on your control panel. When you create a splash screen via the control panel, it's actually a little different than the splash screen in XCode. In XCode, there's a default splash screen set to a plain black image that appears when the app is first loaded. That only lasts until the app gets loaded into memory - a second or so. Then, if you have a "splash screen" set up via your control panel, that gets loaded. The advantage to the control panel one is that you can set how long it should be displayed, or keep it there until the user taps the screen. Annandale is correct that the image should go in the BT_Images folder for iOS apps. But for Android, images should go in the res/drawable folder.
 
AppleJuice
Aspiring developer
Profile
Posts: 47
Reg: Jul 16, 2012
Seattle
6,870
like
02/06/13 10:37 AM (12 years ago)
Well explained Chris1. There are two steps to making a splash screen. 1) Create the screen in the apps list of screens. 2) Visit the apps Global Theme then set the splash screen to the one you created in the list.
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
02/06/13 12:26 PM (12 years ago)
I have had the best luck with splash screens linking them to a url.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/06/13 01:39 PM (12 years ago)
I've had no issues with splash. At least, not yet. 1) I create 2 images; 320x640 and 640x1136 (used to be 640x960) they are usually named 'splash1x.png' and 'splash2x.png'. 2) I create the splash screen. I name it 'splash'. I set the animation settings (2secs/1sec). I assign the images, fullscreen preserve ratio. 3) I list the splash screen in my 'theme'. That's really about it. I don't use JPG or GIFs. only PNG. I've never ever had an issue. Cheers! -- Smug
 
sanamionline
Aspiring developer
Profile
Posts: 61
Reg: Jul 22, 2012
Yulin, Guangxi
3,510
like
02/06/13 08:00 PM (12 years ago)
That's what I did wrong - didn't link it in themes, thanks
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/09/13 07:54 AM (12 years ago)
And just to follow up-be sure to check out my latest two plugins for alternatives to the standard splash screen! :)
 
Boliviapp
Veteran developer
Profile
Posts: 4
Reg: Jul 03, 2013
Cochabamba
40
like
07/16/13 08:39 AM (12 years ago)
Hi, I have a blank screen for about 1-2 seconds before the splash screen start, please help me
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
07/16/13 08:47 AM (12 years ago)
The blank screen is the "Launch Image". This is an Xcode image, which has nothing to do with Buzztouch. You'll see it in the targets section. Just drag the image to the Launch section and it'll never show black again.
 
Itsme45
Aspiring developer
Profile
Posts: 50
Reg: Mar 04, 2013
Mernda 3754, Me...
7,100
like
08/09/13 07:56 PM (12 years ago)
@ Annandale Apps, what is the Launch section? Thx
 
Itsme45
Aspiring developer
Profile
Posts: 50
Reg: Mar 04, 2013
Mernda 3754, Me...
7,100
like
08/09/13 07:57 PM (12 years ago)
@SmugWimp thx for the sizes
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/09/13 09:51 PM (12 years ago)
"Launch" images are the images you see when the application launches. 'typically' it can be used as a splash screen, or similar to your 'home' screen so it doesn't look like the app is delayed any. You'll find them in your project settings area, along with the icons and such. Physically, they (and the icons) are held in the BT_Art directory. There are a bunch of them; one for each available size device, usually. If you want to replace those (I usually use the launch screens as my splash screen, it's less code and more effective) I typically quit xcode, and replace the launch screens with my images (named the same, so it's an overwrite, not an addition). Make sure you do this while Xcode is not running. Or as Thomas said, "While" Xcode is running, drag an image into your Target Section. (I know you asked Thomas, but I got here first, lol!) Cheers! -- Smug
 
Itsme45
Aspiring developer
Profile
Posts: 50
Reg: Mar 04, 2013
Mernda 3754, Me...
7,100
like
08/10/13 07:10 PM (12 years ago)
Haha, thx for the info - yes you won by a nose.
 

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.