title: Make an animated series of pictures show
body: <p>I am trying, upon an imagebutton press, have the imagebutton play several pictures one of ahead of eachother to try and create a pseudo-gif. I have issues trying to play the other images. Im not sure how to create a delay between the pictures. Without waitTimer(), the image gets set to the last one in the list.</p>
  
  <p>How do I create this animated image in this app?</p>
  
  <pre><code>public void waitTimer()
  {
      try {
          Thread.sleep(1000);
      } catch (InterruptedException e) {
          // TODO Auto-generated catch block
          Log.e("Test", "SLEEP 1000");
      }
  }
  
  public void hooplaanimation()
  {
      ImageButton hp1 = (ImageButton)findViewById(R.id.imageButton1);
  
      hp1.setImageResource(R.drawable.h1);   
      waitTimer();
      hp1.setImageResource(R.drawable.h2);  
      waitTimer();
      hp1.setImageResource(R.drawable.h3);
      waitTimer();
      hp1.setImageResource(R.drawable.h4);
      waitTimer();
      hp1.setImageResource(R.drawable.h5);
      waitTimer();
      hp1.setImageResource(R.drawable.h6);
      waitTimer();
      hp1.setImageResource(R.drawable.h7);
      waitTimer();
      hp1.setImageResource(R.drawable.h8);
  </code></pre>