

Like most things in the Android world, we can access backports of newer APIs via an androidx dependency. Well, that was anticlimactic… 😒 AndroidX to the Rescue! The same build on a pre-Android 12 device: But what about the majority of our users, on devices below Android 12? By default on Android 12, the Splash Screen API uses the windowBackground of your theme if it’s a single color and the launcher icon. I’ve modified my adle to change my targetSdk and compileSdk to 31 and here are the results on my device running the Android 12 beta: To illustrate these changes, I’ve updated an example app from my previous post on DiffUtil. Starting with Android 12, App Splash Screens are enabled by default, and if you do not take the time to update your application when targeting Android 12, it may result in an undesirable effect. Now, splash screen support has been grafted into the Android platform (and backported with an androidx library). In a previous post here we detailed the “right way” to add a splash screen to your Android app by overriding android:windowBackground. Splash screens have quite a history with Android, and the Ranch. In Android 12, there are quite a few changes affecting our users and in this blog post we will focus on the upcoming App Splash Screen changes. Being a good citizen in the Android developer community means always giving the users of our applications a smooth transition when upgrading our targetSdk. The impending release of Android 12 brings with it a group of new APIs for Android developers to learn and play with.
