This is a demo app using Splash Screen API (androidx.core.splashscreen)
When a new activity is launhed by calling startActivity() + Intent.FLAG_ACTIVITY_NEW_TASK
,
the splash icon is NOT shown while the splash screen is displayed.
- Android 13 and later: set
<item name="android:windowSplashScreenBehavior">icon_preferred</item>
in the theme applied to the target activity - Android 12: pass an option of
bundleOf("android.activity.splashScreenStyle" to 1)
when callingstartActivity()
before | after |
---|---|
splash_demo_before.mp4 |
splash_demo_after.mp4 |