title: How to show an image for five seconds and then show another one(Android Studio)
body: <p>I have my Java code, I have this layout where there is a <code>ImageView</code> and a <code>Button</code>, in my <code>Drawable</code> folders I have to images, What I want is: When the Button advance is Clicked, the <code>ImageView</code> will show the image(image1.png that is in the <code>drawable</code> folder) and the after 5 seconds show the other image(image2.png). The problem is that I don't know how to make that pause.</p>
  
  <pre><code>advance.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  image.setImageResource(R.drawable.image1);
                    //TO WAIT 5 SCONDS...
                  image.setImageResource(R.drawable.image2);
              }
          });
  </code></pre>