Hello. In onCreate() I do some simple actions. onCreate() launching the application, first there is a white screen for 5 seconds somewhere, and then the design is shown. Why does this happen and how to fix it?
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); this.header1 = (LinearLayout) findViewById(R.id.header1); this.header2 = (LinearLayout) findViewById(R.id.header2); this.header3 = (LinearLayout) findViewById(R.id.header3); this.header4 = (LinearLayout) findViewById(R.id.header4); this.header5 = (LinearLayout) findViewById(R.id.header5); this.header6 = (LinearLayout) findViewById(R.id.header6); this.header7 = (LinearLayout) findViewById(R.id.header7); this.header8 = (LinearLayout) findViewById(R.id.header8); this.header9 = (LinearLayout) findViewById(R.id.header9); this.header10 = (LinearLayout) findViewById(R.id.header10); this.header11 = (LinearLayout) findViewById(R.id.header11); this.header12 = (LinearLayout) findViewById(R.id.header12); this.header13 = (LinearLayout) findViewById(R.id.header13); this.header14 = (LinearLayout) findViewById(R.id.header14); this.header15 = (LinearLayout) findViewById(R.id.header15); this.header16 = (LinearLayout) findViewById(R.id.header16); this.header17 = (LinearLayout) findViewById(R.id.header17); this.header18 = (LinearLayout) findViewById(R.id.header18); this.header19 = (LinearLayout) findViewById(R.id.header19); this.header20 = (LinearLayout) findViewById(R.id.header20); }
onCreate()- Barmaley