I created a splash screen page (composable), but n...
# compose
a
I created a splash screen page (composable), but now there is a 3-second delay when clicking the app icon before it opens. How can I fix this issue and remove the delay?
Copy code
override fun onCreate(savedInstanceState: Bundle?) {
  super.onCreate(savedInstanceState)
  setContent {
    SplashScreen()
  }
}
s
If you are running the application in debug mode, you might experience slowness due to the debug build and JIT compilation. Try running it in release mode with R8 minification enabled to apply as many optimizations as possible, then test again.
1
s
Good to note that since you're not using the native apis for splash screens here, in latest Android versions your users will now see two splash screens. The system one and your custom one on top of it too.
❤️ 2
👍 1
c
s
This elaborate splash screen is not possible using that library though of course, it'd have to be simplified quite a lot