0

I am having

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

So when i start the app, for a fraction of time it show white screen before and after rotating to landscape, and then the application starts.

How to change the color of the background shown before the activity starts

Santhosh
  • 9,965
  • 20
  • 103
  • 243
  • might be because your app is multidex and that white screen is shown while the app is being unpacked. – Nalin Angrish Sep 08 '20 at 15:49
  • 1
    got the answer: https://stackoverflow.com/questions/19738879/white-background-when-android-app-start-up. Add `@android:color/black` – Santhosh Sep 08 '20 at 15:51

0 Answers0