iOS: black screen after launch

Previous topic - Next topic

ampos

On iOS, you can set a image file named "default.png" that will be displayed as soon as the app launch, and being displayed until the app is ready to run.

The "problem" is that GLB "closes" this screen just after launch.

If you make this program

Code (glbasic) Select
LOADBMP "myback.png"
showscreen
waitmouse


and also you provide a dafault.png picture, iOS will display the default, then a black screen lasting err... half a second, and then the myback.png picture.

I would like to have this "black screen time" removed, as it breaks the aestetic of (my) program.

If it can be removed on next update, cool. If not, I can live with that.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Moebius

I've noticed this as well.  It would be nice if GLB could display the 'default.png' file if it's present while initialising.  Is that possible?  It doesn't matter too much to me, but it would be nice to be able have a transition from the loading image in your code, without the screen going blank for a bit.
Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.
- Random Shack Data Processing Dictionary

Marmor

I agree , this will be a nice feature because some People think the App is broken in this Time and pressing the Home Button.

ampos

In my app, I have made a screen displaying "loading" as default.png, and the very first command in the app is "loadbmp ... / showscreen" with an app that says "run" simulating a C64 lolading/run screen, but this "black time" annoy me a bit.

I have not tested if the setscreen command has something to do with this black time.

check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

ampos

Quote from: Serpent on 2011-Jan-07
I've noticed this as well.  It would be nice if GLB could display the 'default.png' file if it's present while initialising.  Is that possible?  It doesn't matter too much to me, but it would be nice to be able have a transition from the loading image in your code, without the screen going blank for a bit.

The default.png screen is loaded by iOS if it is present.

I think that the problem is that GLB-xcode just do an internal "setscreen" or similar, with black background info. As you said, it could be cool if instead of doing this, glb-xcode open this very first screen with this default.png screen.

Not sure, but also I think that GLB can not access the original default.png picture as it is outside of the /media dir, but I have no problem putting this default.png file inside the /media dir.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Kitty Hello

the time to create a screen and init the app takes that half second. No way to change that. :/

ampos

I think so until I see other apps (no GLBs ones) with not this black time  :P
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Slydog

According to this site:
http://iphonedevelopertips.com/cocoa/defaultpng-the-secret-of-the-load-screen.html

the file must be named 'Default.png' with a capital 'D'.
And ya, the iOS takes care of it until the code can be loaded and started.
If it still doesn't work as expected, maybe GLBasic is blanking the screen early in it's initializing.
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Millerszone

#8
For the iPad, these are the files you would need for the start up screen:
Default-Portrait.png 
Default-PortraitUpsideDown.png    
Default-Landscape.png     
Default-LandscapeLeft.png    
Default-LandscapeRight.png
Default.png

Although you can include a Default.png file, and it will be used if no others are specified.

I use 'Default.png' that is empty(black screen) because I don't like the screen flicker.
I first load the splash screen in GLBasic, then initialize everything. The splash doesn't load instantly, but in
about 3 seconds it shows up, which is not bad.

If you have "Angry Birds" for the iPad you'll notice it doesn't show a screen until about 6 seconds.



Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

matchy

There is absolutely no rational reason for a splash screen before the app starts. Unlike xcode (which is why there is one), it only requires two lines of glb code.

Moebius

#10
There are apps which manage transitions smoothly (e.g. "Tilt to Live"), but as feared:
Quotethe time to create a screen and init the app takes that half second. No way to change that. :/
Nobody would mind if the splashscreen doesn't come up for a second or two anyway...

EDIT:  Very well said matchy BTW
Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.
- Random Shack Data Processing Dictionary

ampos

Hell, you have to make a mountain of a grain of sand...

XCode has the option to have a fast splash screen. You can use it or not. GLB introduces a half-second black screen between this splash screen and the first "loadbmp" command. Other non-glb apps do not do this black time.

I asked if it can removed.

Yes? Cool. No? No problem.

Why so many problems?
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE