title: Android ICS Activity Transition from Fade In/Out Back to Slide
body: <p>I have an app where I used default slide in/out effects on standards activities and fade in/out on a few specific activities.</p>
  
  <p>I've noticed that the new Android 4.X (ICS) has a different default, which is exactly fade in/out.</p>
  
  <p><strong>How can i define on my standard activities my slide in/out effect?</strong></p>
  
  <p>I've been trying to define it with:</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState)
  {
      this.overridePendingTransition(0, android.R.anim.slide_in_left);                  
      super.onCreate(savedInstanceState);
  }
  
  @Override
  public void onPause()
  {
      super.onPause();
      overridePendingTransition(android.R.anim.slide_out_right, 0);
  }
  </code></pre>
  
  <p>To reproduce the fade in / out effect i'm using:</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState)
  {
      this.overridePendingTransition(0, android.R.anim.fade_in);                  
      super.onCreate(savedInstanceState);
  }
  
  @Override
  public void onPause()
  {
      super.onPause();
      overridePendingTransition(android.R.anim.fade_in, 0);
  }
  </code></pre>
  
  <p>but haven't managed to successfully reproduce it.</p>
  
  <p>Also, I'm using this code on onCreate and onPause, is this correct? Or is there a better place to put it?</p>
  
  <p>Thanks</p>
  
  <p>PS: I've seen this <a href="https://stackoverflow.com/questions/8654379/new-android-4-0-screen-transitions-between-activities">New Android 4.0 Screen Transitions Between Activities</a> but now answer has been provided.</p>