The short answer
Since Android 12 (API 31), every app gets a system splash screen when it starts, whether you configure one or not. It shows your app icon centered on a solid background, then animates away when your first frame is ready. You can't replace it with a full-screen image, but you can set the background color, the centered icon (static or animated), an optional icon background circle, and keep it on screen while your app loads data. Use the AndroidX core-splashscreen library to get the same behavior on older Android versions.
How the system splash screen works
The splash screen appears on a cold start (the app process isn't running) and a warm start (the process is alive but the activity was destroyed). It does not appear on a hot start, when the activity is simply brought back to the front. The system draws it from your theme before any of your code runs, which is why it's configured in XML rather than in a layout.
When your app draws its first frame, the splash screen exits. By default it fades out, but you can provide your own exit animation, or delay the exit until your app is ready, for example until the user's session has loaded.
Icon sizes and the safe zone
The splash icon follows the same rules as an adaptive icon: it's drawn inside a mask, so anything near the edges is cut off.
| Icon type | Canvas size | Visible area |
|---|---|---|
| Without icon background | 288×288 dp | Content must fit in a circle 192 dp in diameter |
| With icon background | 240×240 dp | Content must fit in a circle 160 dp in diameter |
| Branding image (optional, bottom) | 200×80 dp | Shown below the icon; Google recommends not using it |
In pixels, 288 dp is 288 px at mdpi and 1152 px at xxxhdpi. If you don't set a splash icon at all, Android uses your launcher icon. That's fine for many apps, but a dedicated splash icon lets you use a cleaner logo without the launcher background. The splash screen generator exports the Android 12 splash icon at the right sizes along with a ready-made themes.xml.
Theme attributes
You configure the splash screen in the theme of your launcher activity:
windowSplashScreenBackground: the full-screen background color.windowSplashScreenAnimatedIcon: the centered icon. Despite the name, a static vector or PNG drawable works too. An animated vector drawable plays while the app loads.windowSplashScreenAnimationDuration: how long the icon animation runs. Keep animations short; Google recommends no more than 1,000 ms.windowSplashScreenIconBackgroundColor: a colored circle behind the icon, useful when the icon doesn't contrast with the background.windowSplashScreenBrandingImage: the optional image at the bottom of the screen.
Supporting older Android versions
On Android 11 and lower, the platform API doesn't exist. The AndroidX androidx.core:core-splashscreen library gives you one setup for every version:
- Create a theme with
Theme.SplashScreenas its parent, setwindowSplashScreenBackground,windowSplashScreenAnimatedIconandpostSplashScreenTheme(the theme your app uses after the splash), and apply it to your launcher activity in the manifest. - Call
installSplashScreen()in your activity'sonCreate()beforesuper.onCreate(). - To keep the splash visible while loading, call
setKeepOnScreenCondition { … }with a check that returnsfalseonce your data is ready.
On older versions the compat library shows the icon and background but not icon animations.
Dark mode
The splash screen follows the system theme, so put a second version of your splash theme in values-night (and values-night-v31 if you use platform attributes) with a dark background color. If your logo is dark, provide a light version for the dark theme, otherwise it disappears against the background. The splash screen generator can export these night resources for you.
Migrating from a custom splash activity
Many older apps used a separate SplashActivity showing a full-screen image. On Android 12 and newer, the system splash appears first, followed by your custom one, so users see two splash screens in a row. To fix it:
- Move your splash design into the theme attributes above and remove the extra activity.
- If the activity was doing real work, such as routing to login or onboarding, move that logic into your main activity and use
setKeepOnScreenConditionto hold the splash until it's done. - Remove old full-screen splash bitmaps from
android:windowBackground.
Common mistakes
- Logo too large, so the circular mask cuts it off. Keep it inside the 192 dp (or 160 dp) circle.
- Calling
installSplashScreen()aftersuper.onCreate(), which breaks the transition to your app theme. - Holding the splash for too long. Use it to cover real loading, not as an ad for your logo.
- No dark variant, so a white splash flashes when users open the app at night.
Sources: Android Developers "Splash screens" and "Migrate your splash screen implementation to Android 12 and later", AndroidX Core SplashScreen release notes. Last checked October 2026.
Launch screens in every iOS and Android size.