Starting with Android OS 12, the system default splash screen always applies to cold and warm starts for all apps.
See https://developer.android.com/about/versions/12/features/splash-screen#how for how the OS12 splash screen works.
This causes the following issues if you are creating a custom splash screen in your app
- On OS: 12 or later, "System default splash screen" and custom splash screens are displayed.
- The splash screen displayed up to OS: 11 and after OS: 12 are different.
In this repository, we have released a sample application that uses a compatible library and applies the same splash screen to all OS versions.
Pixel 4 OS12 | Pixel 4 OS8 |
---|---|
https://github.com/LeoAndo/android12-splash-screen/pulls?q=is%3Apr+label%3AcodingFlow+is%3Aclosed
https://github.com/LeoAndo/android12-splash-screen/tree/main/BasicComposeAppSample
https://github.com/LeoAndo/android-dev-summit-2021/issues/5#issuecomment-970318757
https://developer.android.com/guide/topics/ui/splash-screen/migrate
https://developer.android.com/about/versions/12/features/splash-screen