In my app I have a separate Activity for the splash screen. In that activity i am using an ExecutorService to run a heavy background task to load the startup data to a Application singleton class. Also i am doing a billing check in this class to check if the users have purchased any in_app_purchases.
So my question is, i want to use the android 12 splash screen API. So by using that API and what would be the best way to load the startup data so that i can totally remove the separate splash screen activity. Could I hold the startup screen till the data load. Where to implement the ExecutorService, is it on the main activity. Thanks