When switching from ActivityOne to ActivityTwo until the ActivityTwo onCreate process is completed, the background is displayed, which is a white / black screen. Good practice is not a tough operation in onCreate. To fix the problem, set a transparent background for ActivityTwo, as shown below.
<style name="YourTheme" parent="YourParentTheme"> <item name="android:windowBackground">@android:color/transparent</item> </style>
In the manifest above the theme
<activity android:name=".ActivityTwo" android:theme="@style/YourTheme"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
Rocky source share