title: Fade in Activity from previous Activity in Android
body: <p>I am currently working on an Android app and I am having some issues with my splash activity. I want my main activity to fade in from my splash activity, not from a black screen. Both my splash and main activities use the same background image so if I do a fade_in/fade_out combo, it looks weird as the background kind of fades a bit during the transition.</p>
  
  <p>The idea here is I have to versions of my logo: normal and glowing. I want my main activity to fade in so my glowing logo over takes my normal logo causing a neat little "turn on" effect. The following code fades in from a black screen, which is not ideal.</p>
  
  <pre><code>/**
   * Pause Activity
   */
  @Override
  protected void onPause()
  {
      super.onPause();
      finish();
      overridePendingTransition(android.R.anim.fade_in, 0);
  }
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>Creating my own fade_out animation to retain the 1.0 alpha level (from 1.0 to 1.0) and adding <code>android:fillAfter="true"</code> to my splash animation set fixed the issue.</p>