title: Calling setImageResource from AsyncTask multiple times
body: <p>Good day everyone.</p>
  
  <p>I'm working with <strong>AsyncTasks</strong> and calling <code>publishProgress();</code> from <code>doInBackground()</code> method. I'm pretty sure there's no error until here.</p>
  
  <p>I need to change an ImageView's source, e.g. in every 3 seconds from <code>onProgressUpdate()</code> method.</p>
  
  <p>If i only do this;</p>
  
  <pre><code>        agiz.setImageResource(R.drawable.image1);
  </code></pre>
  
  <p>initial image successfully changes to image1.</p>
  
  <p>But if i try to do this (which is my goal actually)</p>
  
  <pre><code>        imageView.setImageResource(R.drawable.image1);
  
          try {
              Thread.sleep(3000);
          } catch (InterruptedException e) {
          }
  
          imageView.setImageResource(R.drawable.image2);
  
          try {
              Thread.sleep(3000);
          } catch (InterruptedException e) {
          }
  
          imageView.setImageResource(R.drawable.image3);
  
          try {
              Thread.sleep(3000);
          } catch (InterruptedException e) {
          }
  </code></pre>
  
  <p>imageView <strong>WAITS 6 SECONDS, THEN</strong> turns to image3, without showing image2.</p>
  
  <p>What am i missing ? </p>
  
  <p>Thanks in advance.</p>