Brian Long created a native Android SDK splash screen demo for CodeRage 8 to use for your Firemonkey apps. On Android it can take anywhere from 4 to 10 seconds for your app to initially launch and with this splash screen your users will see the splash screen instantly while the rest of the app loads. Otherwise they will just see a black screen which isn’t very user friendly. The splash screen actually sets up a Layout and image in Java before launching the Delphi XE5 app code. It also has some additional functionality where it checks the functionality of the user’s Android CPU to make sure it has the required NEON instruction set. If it does not it notifies the user and closes gracefully. It also checks if it is running a version of Android that is supported by XE5 and running on an ARM7 CPU. This functionality should be built into Delphi XE5 but currently is not. I’m pretty sure Adobe AIR does something similar. In any event it is a pretty complex process to get it set up but it looks like you only need to do it once and then you can reuse it with all of your Android apps. This method is not needed on IOS because IOS allows you to setup your own splash screen which IOS displays for you. I also extracted just the splash screen directory and made it available here in case the original becomes unavailable:
Firemonkey Android SDK Splash Screen Archive
Update:Â You can also try this new method of using the Android Manifest to create a splash screen.
4 Comments