title: Black screen between two activity using animation in android
body: <p>I am using Apis 's deme for slide-in and slide-out between two activity. But when I jump from one activity to another a black screen is appearing.</p>
  
  <p>Slide-Left-</p>
  
  <pre><code>&lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:interpolator="@android:anim/accelerate_interpolator" &gt;
  
      &lt;translate
          android:duration="300"
          android:fromXDelta="100%p"
          android:toXDelta="0" /&gt;
  
  &lt;/set&gt;
  </code></pre>
  
  <p>Slide-Right-</p>
  
  <pre><code>&lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:interpolator="@android:anim/accelerate_interpolator" &gt;
  
      &lt;translate
          android:duration="300"
          android:fromXDelta="-100%p"
          android:toXDelta="0" /&gt;
  
  &lt;/set&gt;
  </code></pre>
  
  <p>To Jump from one activity to another:-</p>
  
  <pre><code>Button button1 = (Button) findViewById(R.id.Button01);
          button1.setOnClickListener(new View.OnClickListener() {
              public void onClick(View view) {
                  startActivity(new Intent(getApplicationContext(), SecondView.class));
                  overridePendingTransition(R.anim.slide_left, R.anim.slide_right);
  </code></pre>
  
  <p>});</p>
  
  <p>Why is this black screen is appearing between two activity.</p>