Background image ignores tiling when starting other activity immediately
<p>I've seem to run into some kind of weird issue with tiling backgrounds getting stretched under certain conditions.</p>

<p>My application has a welcome screen (with sign in / sign out) as it's main activity. If the the user is already signed in, s/he gets automatically redirected to another activity from the <code>onCreate</code> method.</p>

<p>The problem is that the tiling background of the application window gets stretched whenever this happens.</p>

<p>Now, the tiling works perfectly for all backgrounds as long as I've "seen" the main activity. That is, if I remove the call to <code>startIntent</code> from <code>onCreate</code> – or – if i go "back" to the welcome screen and continue from there.</p>

<p>I've tried "jumping" from <code>onResume</code> as well, but the issue remains.</p>

<p>Setting the background via <code>themes.xml</code></p>



<pre class="lang-xml prettyprint-override"><code>&lt;item name="android:windowBackground"&gt;@drawable/application_background&lt;/item&gt;
</code></pre>

<p><code>drawable/application_background.xml</code> (which also includes a subtle gradient)</p>

<pre class="lang-xml prettyprint-override"><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item&gt;
    &lt;bitmap android:src="@drawable/noise" android:tileMode="repeat" /&gt;
  &lt;/item&gt;
  &lt;item&gt;
    &lt;shape android:shape="rectangle"&gt;
      &lt;gradient android:angle="90"
                android:startColor="#3000"
                android:endColor="#0000" /&gt;
    &lt;/shape&gt;
  &lt;/item&gt;
&lt;/layer-list&gt;
</code></pre>

<p>The relevant code from <code>WelcomeActivity.java</code></p>

<pre class="lang-java prettyprint-override"><code>public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.welcome);

  // ... init buttons etc

  // Jump directly to the reading list user already has valid credentials
  if(hasValidCredentials()) {
    startActivity(new Intent(this, ActivityReadingList.class));
  }
}
</code></pre>

<p>A crude Gimp illustration of the issue:</p>

<p><img src="http://i.imgur.com/mohu4.png" alt="Tiling Issue Android"></p>

<p>Any help would be appreciated.</p>

<p>Thanks,
/C</p>
