I found another way to do a splash screen with Delphi XE5 Firemonkey apps on Android over at a Korean Delphi blog by Humphrey. Kim Hyun – Soo. Basically this method is much easier than modifying the classes.dex file and much better than just implementing the splash screen on your Delphi form. The idea of the splash screen is to have something for the user to look at instead of a black screen while the rest of the app is loading. The general implementation is that you create a styles.xml file which sets up a background image as a style and then you assign that to the theme part of the Android manifest. You must include the styles.xml file and the splash screen image in your project when deploying, make the small change to the Android manifest, and that is all there is to it. The change to the Android manifest looks like this:
android: theme = "@ style / MyTheme.NoTitleBar.SplashWindow">
And the contents of the styles.xml file looks like this:
<style name="MyTheme.NoTitleBar.SplashWindow" parent="@android:Theme.Holo">
The original blog post is in Korean so I’ve passed it through Google Translate. The Korean blog post also references this Chinese blog post which may be where the original idea is from.
You can also click through directly to a sample app with source code on Github.
Add A Splash Screen With The Android Manifest For Delphi XE5 Firemonkey Apps by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.