title: Cycle through imageview
body: <p>I've got this code :</p>
  
  <pre><code>    public void createTask() {
  
      for (int i = 0; i &lt; 6; i++) {
          Random rnd = new Random();
          int color = rnd.nextInt(10);
          showImage(color);
      }
  </code></pre>
  
  <p>But I want it to cycle through the image-views.. so show one, keep it on the screen for 3 seconds, then show 2nd, keep that on screen for 3 seconds, show 3rd and so on.</p>
  
  <p>I've made showImage and hideImage methods to keep code clean :</p>
  
  <pre><code>    public void showImage(int color) {
      ((ImageView) findViewById(myImagebtns[color]))
              .setVisibility(View.VISIBLE);
  };
  </code></pre>
  
  <p>How should I program the waiting time (sleep? thread?) not locking the UI?</p>