I have a match-3 game that exports and works beautifully on Android. But after the launcher icon displays, there is a 10-15 second blank (black) screen. It feels like the phone is dead. After that period, the boot splash works, and the game works perfectly. I notice the same sequence in Candy Crush, but right after the launcher icon displays briefly, during this 10-second period, the King logo and the words “Loading” appear. I would like to do something similar.
To fix this, I need to show a simple loading screen (like a logo and the word “Loading”) during that 10-15 second blank screen, before the Godot boot splash appears. From what I’ve learned, this blank screen happens because the Godot engine is starting up (loading its files and setting up the graphics), and it doesn’t show anything on the screen until it’s ready. To add a loading screen during this time, I need to create a native Android screen (called a “LoadingActivity”) that shows my logo and “Loading” text right when the app starts, then switches to the Godot game after the engine is ready.
To do this, I need to export my Godot project as Android source files (not just an APK file) so I can change some Android files and add my loading screen. In Godot, there’s supposed to be an option called Export Project in the Export window that lets me do this. It would give me a folder with Android files I can open in Android Studio, where I can add my LoadingActivity and put my logo in the right place. Then I can build a new APK with the loading screen included.
Here’s what I’ve tried with the custom export in Godot 4.4.1 (I also tried 4.3):
I went to Project > Export and selected my Android preset.
I turned on Advanced Options and unchecked Use Gradle Build, which showed a Custom Template section.
I was hoping this would make the Export Project option appear in the Export Format dropdown (which currently only shows Export APK and Export AAB), but it didn’t.
I also tried editing the export_presets.cfg file in my project folder to add custom_build=true, use_gradle_build=false, and export_format=2, but this didn’t make Export Project show up either.
What I need is a way to make the Export Project option appear in Godot 4.4.1 so I can export my project as Android source files. Then I can use Android Studio to add my loading screen and build a new APK that shows my logo and “Loading” text during the 10-15 second blank screen, before the Godot boot splash starts.
If there’s another way to add a loading screen during the Android engine startup without exporting the source files, I’d love to hear about that too!
Details:
Godot Version: 4.4.1.stable.official [49a5bc7b6] (also tested on 4.3)
OS: macOS 14.6.1
Export Target: Android (Min SDK 24, Target SDK 34)