iOS Question Black Screen at app start

Douglas Farias

Expert
Licensed User
Longtime User
Hi all, i m not good with english, i made a video to show this.

why apps made in b4i show a black screen when you touch on the icon?
here is a video, its my phone (iphone 4s)

i see that only on b4i apps, all anothers are normal, on video i open 5+ apps to show.
i m tryed this tutorial
https://www.b4x.com/android/forum/threads/how-to-add-launch-images-in-b4i.55597/#content
but no success, i edit B4iProject-Info.plist file, when i compile my app the code of iphone 4s is removed, and if i put read only the app dont compile.
code iPhone 4s
B4X:
<dict>
    <key>UILaunchImageMinimumOSVersion</key>
    <string>7.0</string>
    <key>UILaunchImageName</key>
    <string>Default</string>
    <key>UILaunchImageOrientation</key>
    <string>Portrait</string>
    <key>UILaunchImageSize</key>
    <string>{320, 480}</string>
  </dict>

why this black screen and how fix this?
 

Douglas Farias

Expert
Licensed User
Longtime User
You are doing to many things in Application_Start.

Finish Application_Start quickly. If you need use CallSubDelayed to do more work afterwards.

the same continue, tested with all apps made in b4i here on forum.
any way to change to white screen this black? i dont need put any image, only change this to white.
 
Last edited:
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
Hi @Erel
Its hard to explain it in english.
i m made a video, on this video i show the bug.

i folow your tutorial on the video, i try use callsubdelayed too, i test in release, i open anothers apps to show but the same bug continue.
the IDE delete the changes.

Pls i made this video to show the complete bug, pls look all video
(b4i 2.30), i m using real device, iphone4s

 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
Simple, the tutorial dont work for iphone 4s
on the video i show this, b4i apps and anothers apps.

the B4i remove this
B4X:
<dict>
    <key>UILaunchImageMinimumOSVersion</key>
    <string>7.0</string>
    <key>UILaunchImageName</key>
    <string>Default</string>
    <key>UILaunchImageOrientation</key>
    <string>Portrait</string>
    <key>UILaunchImageSize</key>
    <string>{320, 480}</string>
  </dict>

the launch image its ignored, on the video i folow the tutorial step by step.
https://www.b4x.com/android/forum/threads/how-to-add-launch-images-in-b4i.55597/#content
and dont work, 4,5 seconds to open the app with a black screen.

i try on the video use callsubdelayed on Application_Start but the same black screen continue.(i show this on video too)

how can i solve this? my app its 99% white, i dont want black screen at start :(
 
Last edited:
Upvote 0

sorex

Expert
Licensed User
Longtime User
You can add a launch image. Follow the instructions in that thread carefully. It works.

I never got it to work on my 4S tho, the black page as seen in his first video is still there even on empty projects.

I got a "broken" iPhone 5 from a nephew since last week and I'll see this evening if it happends there aswell.
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
hmm the black screen continue later the red :(
the screen its not the problem, the real problem its the black, where its black?
its possible to change this black to white?

rebbug-png.38685


if all screen white, no problem, but black with white its strange :(
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
I m added
B4X:
<dict>
    <key>UILaunchImageMinimumOSVersion</key>
    <string>7.0</string>
    <key>UILaunchImageName</key>
    <string>Default</string>
    <key>UILaunchImageOrientation</key>
    <string>Portrait</string>
    <key>UILaunchImageSize</key>
    <string>{320, 480}</string>
  </dict>

on B4iProject-Info.plist

later i m downloaded your red image.
i m put it in Special folder.

now i compile in release
i see the red image on Objects\src when i compile in release.

i will test the app on iphone 4s and i dont see red image. only the black.
if i open the B4iProject-Info.plist again the code of iphone4s is not here.

if i put read only dont compile :(

the b4i its removing the iphone4s code of B4iProject-Info.plist

what i can make in this case?
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
[email protected] size = 640x960 (iphone4s)
[email protected] size = 640x1136
[email protected] size = 750x1334
[email protected] size = 1242x2208

amostra1.png



on i tested with B4iProject-Info.plist

upload_2015-11-5_15-34-7.png


B4X:
<dict>
    <key>UILaunchImageMinimumOSVersion</key>
    <string>7.0</string>
    <key>UILaunchImageName</key>
    <string>Default</string>
    <key>UILaunchImageOrientation</key>
    <string>Portrait</string>
    <key>UILaunchImageSize</key>
    <string>{320, 480}</string>
  </dict>

and later with

B4X:
<dict>
    <key>UILaunchImageMinimumOSVersion</key>
    <string>7.0</string>
    <key>UILaunchImageName</key>
    <string>Default</string>
    <key>UILaunchImageOrientation</key>
    <string>Portrait</string>
    <key>UILaunchImageSize</key>
    <string>{640, 960}</string>
  </dict>


when i compile release or debug the code are removed from B4iProject-Info.plist
every time, when i compile the code its removed.

the red image dont show only the black for 3/5 seconds.

can you upload your project of the video?
 
Upvote 0
Top