Android splash screen not showing on real device
<p>I am trying my application on my galaxy s5 and s6 but on this devices my application not show the splash screen(background from ImageView) (the app show white screen and go to the main). I try on a virtual device on the android studio and it work with out problem. can anyone know why this is happened and how can I fix that ? </p>

<p>My SplashScreen Class - </p>

<pre><code>    protected void onCreate(Bundle savedInstanceState) {

    //    hide action bar from the activity
    android.support.v7.app.ActionBar actionBar = getSupportActionBar();
    actionBar.hide();

    super.onCreate(savedInstanceState);
    setContentView(R.layout.splash_screen);

    /****** Create Thread that will sleep for 6 seconds *************/
    Thread background = new Thread() {
        public void run() {

            try {
                // Thread will sleep for 6 seconds
                sleep(6 * 1000);

                // After 5 seconds redirect to another intent
                Intent i = new Intent(getBaseContext(), MainActivity.class);
                overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
                startActivity(i);

                //Remove activity
                finish();

            } catch (Exception e) {

            }
        }
    };

    // start thread
    background.start();
}
</code></pre>

<p>Thanks ! </p>