Disable fadein animation
<p>I am trying to create a splash screen for my app. The problem is it first renders empty layout with default title bar and then fades in my image.</p>

<p>This is all I have <code>onCreate</code></p>

<pre><code>super.onCreate(savedInstanceState);
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.setContentView(R.layout.activity_splash);
</code></pre>

<p>Attempted solution from <a href="http://stackoverflow.com/questions/6972295/switching-activities-without-animation">switching activities without animation</a></p>

<p>Also tried to set window attributes</p>

<pre><code>WindowManager.LayoutParams lp = this.getWindow().getAttributes();
lp.windowAnimations = lp.windowAnimations | android.R.attr.windowDisablePreview; 
this.getWindow().setAttributes(lp);
</code></pre>

<p>neither made any visible difference.</p>
