how can we use animation one image after another image?
<p>how can we use animation if i want one image after another image 
i had some code but it is not working </p>

<pre><code>Context mContext;
 protected void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     setContentView(R.layout.animationdemo);
     Resources res = mContext.getResources();
     TransitionDrawable transition = (TransitionDrawable) res.getDrawable(R.drawable.transitiondrawable);
     ImageView image = (ImageView) findViewById(R.id.imgView);
     image.setImageDrawable(transition);
     transition.startTransition(1000);
 }
</code></pre>

<p>and made one xml file transitiondrawable.xml file into drawable folder</p>

<pre><code>&lt;transition xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item android:drawable="@drawable/endoscope_"/&gt;
  &lt;item android:drawable="@drawable/endoscope_2"/&gt;
&lt;/transition&gt;
</code></pre>

<p>and one layout file animationdemo.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_gravity="center"&gt;


&lt;ImageView
 android:id="@+id/imgView"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"&gt;
 &lt;/ImageView&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>please give me idea where i m wrong</p>
