Unwanted Blank screen showing on app start up android jetpack compose - android studio chipmunk.-How to remove it?

1.2k Views Asked by At

I just created an empty project and run it on device. On the app start up it shows a default blank screen on start up(app launch) before the first activity. I went through many answers and didn't find an exact answer or the root cause from where it is showing up. Many answers told to add

<item name="android:windowDisablePreview">true</item>

in themes.xml. Even after adding I still see the blank screen appearing. Also in some other answer they told about new splash screen api, but I didn't feel it much customizable for doing server calls and other operations in splash screens. Also its available in below 12 versions. What is right solution to handle this unwanted glitches during app startup? Your help is highly appreciated.

<resources>

    <style name="Theme.Owl" parent="@style/Theme.Material.DayNight.NoActionBar">
        <item name="android:colorPrimary">#ff00ff</item>
        <item name="android:colorAccent">#ff00ff</item>
        <item name="android:statusBarColor">@color/immersive_sys_ui</item>
        <item name="android:navigationBarColor">@color/nav_bar</item>
        <item name="android:windowDisablePreview">true</item>
    </style>

    <style name="Theme.Material.DayNight.NoActionBar" parent="@android:style/Theme.Material.Light.NoActionBar" />

</resources>
0

There are 0 best solutions below