How to slide animation between two activity in Android?
<p>I want slide effect left to right when I change the Activity and for that I am using following code
but not getting any result. please current me.
Thanks</p>

<p>in java both file</p>

<pre><code>super.onCreate(savedInstanceState);
overridePendingTransition(R.anim.fadein, R.anim.fadeout);
setContentView(R.layout.main);
</code></pre>

<p>two files in res/anim directory<br>
fadein.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;alpha
 xmlns:android="http://schemas.android.com/apk/res/android"
 android:duration="5000"
 android:fromAlpha="0.0"
 android:interpolator="@android:anim/slide_out_right"
 android:toAlpha="1.0" &gt;
&lt;/alpha&gt;
</code></pre>

<p>fadeout.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;alpha
 xmlns:android="http://schemas.android.com/apk/res/android"
 android:duration="5000"
 android:fromAlpha="0.0"
 android:interpolator="@android:anim/slide_in_left"
 android:toAlpha="1.0" &gt;
&lt;/alpha&gt;
</code></pre>
