Change an image for a second
<pre><code>     ImageView image = (ImageView) findViewById(R.id.imageview);

     image.setImageResource(drawable.image1);
     SystemClock.sleep(1000);
     image.setImageResource(drawable.image2);
</code></pre>

<p>I am trying to change the image for a second, my code above doesn't work but not sure why?
Should I be using a thread? or does anyone have any better ideas?</p>

<p>EDIT
To clarify on the problem:</p>

<p>The image being displayed as "drawable.image2"
I want "drawable.image1" to be shown for one second then change to "drawable.image2".</p>

<p>EDIT2:</p>

<p>This code is used in the onClick. When a user clicks the image it needs to change for one second</p>
