Software Archive
Read-only legacy content
17060 Discussions

Black preview screen

BARRY_C_
Beginner
2,168 Views

I am testing a new android app based on my html5 code and find that a black screen appears for about .5 seconds before the app starts. Is there a way to change this initial black screen to white?

0 Kudos
5 Replies
Elroy_A_Intel
Employee
2,168 Views

No there is not way to change the initial screen that you are seeing. I recommend uploading a launch screen in the Project's Tab to avoid this.

0 Kudos
BARRY_C_
Beginner
2,168 Views

Thanks for the comment. I just looked at the Projects tab and can only see Launch Icons and Splash Screens which I had already uploaded. Is there another place I should look for the Launch screen image?

0 Kudos
PaulF_IntelCorp
Employee
2,168 Views

Barry, that is the only launch screen. I believe the black screen you are seeing is the background of the webview as it is initializing, which is what the launch screen is supposed to cover. There could be a delay in your app from the time the webview is initialized to the time the launch screen code is able to start (which is part of the Cordova code). If you're loading some JS libraries before the cordova.js lib, they may be causing a 0.5 second delay before the cordova.js can initialize. Or, it could be due to a long init sequence in one of the cordova plugins, which all initialize as part of that cordova.js script. You can play with the order of your js files, relative to the cordova.js file. Unfortunately, there's not much you can do to change the init order of the cordova.js plugins...

0 Kudos
BARRY_C_
Beginner
2,168 Views

That's what I was thinking too. Since I already have the splash screens and icons loaded and ready and still see the black startup I wonder if there is a way to change the webview background color to white using the html5 or config.xml files???

0 Kudos
PaulF_IntelCorp
Employee
2,168 Views

Barry, see this "BackgroundColor" preference that can be added to your intelxdk.config.additions.xml file > https://cordova.apache.org/docs/en/5.1.1/config_ref/index.html

0 Kudos
Reply