In my Android application I seen black screen before splash screen so that I
have customized app theme as follows:
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- my custom theme. -->
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowBackground">@drawable/splash1</item>
</style>
the following is work for API version 20 and below version but in kitkat version (API version 21) it open the my splash screen two times. I could not get solution after working long time. Please help me on this.