title: Black screen appears before splash screen
body: <p>when I launch my application, there is a black screen that appears for few moments and then only splash screen appears.I followed some of the solutions from <a href="https://stackoverflow.com/questions/14307126/black-screen-before-splash-screen-appear-in-android">this</a> thread but none worked.What might be the actual cause of it? can anyone help? I have pasted the code below.</p>
  
  <p><code>SplashScreenActivity.java</code></p>
  
  <pre><code>public class SplashScreenActivity extends Activity {
  
      private static final int SPLASH_TIME_OUT = 3 * 1000;
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          this.requestWindowFeature(Window.FEATURE_NO_TITLE);
          getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
          setContentView(R.layout.activity_splash);
  
          Util.doGuestLoginAndCheckForExpireDate();
  
          UserDetail.deleteUserDetailJson();
          Util.setProfileFetchStatus(false);
          // Start animating the image
          final ImageView splash = (ImageView) findViewById(R.id.logoImageViw);
  
         final  TranslateAnimation anim = new TranslateAnimation(0f, 0f, 1200f, 0f);
          anim.setDuration(1200);
          anim.setFillAfter(true);
  
          splash.startAnimation(anim);
  
          new Handler().postDelayed(new Runnable() {
              @Override
              public void run() {
  
                  splash.setAnimation(anim);
  
                  if (Util.getLoginStatus()) {
                      startActivity(new Intent(SplashScreenActivity.this, RestActivity.class));
                  } else
                      startActivity(new Intent(SplashScreenActivity.this, AppIntroduction.class));
  
                  finish();
  
              }
          }, SPLASH_TIME_OUT);
  
      }
  }
  </code></pre>
  
  <p>This is the<code>theme</code> I've included in <code>Application tag</code> inside <code>Android manifest.xml</code> file</p>
  
  <pre><code>&lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
      &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
      &lt;item name="colorPrimary"&gt;@color/primary_color&lt;/item&gt;
      &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/primary_color&lt;/item&gt;
      &lt;item name="drawerArrowStyle"&gt;@style/DrawerArrowStyle&lt;/item&gt;
      &lt;item name="android:windowContentOverlay"&gt;@null&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>Anything Am I doing wrong here??</p>