title: Android: Updating UI with a Button?
body: <p>So I have some simple code but it seems to not be working.. any suggestions?</p>
  
  <p>I just want an image to show after a button is pressed then become invisible after 2 seconds.</p>
  
  <pre><code>button.setOnClickListener(new OnClickListener() {
     public void onClick(View v) {
        firstImage.setVisibility(ImageView.VISIBLE);
        // delay of some sort
        firstImage.setVisibility(ImageView.INVISIBLE);
     }
  }
  </code></pre>
  
  <p>The image never shows, it always stays invisible, should I be implementing this in another way?  I've tried handlers.. but it didn't work, unless I did it wrong.</p>