- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page