Closing an activity after a number of second
<p>After pushing a button, i want to close an activity. But, I’d like to wait some seconds before closing it, because users have to read a short message displayed on that activity.
I tried using Thread inside the onClick event</p>

<pre><code>try{
  Thread.sleep(2000);
      finish();  
   }
  catch(Exception e){}
</code></pre>

<p>But, when I push the button, the entire objects are freeze (for example, the button stay pushed).</p>

<p>Then I used a simple Timer</p>

<pre><code>timer.schedule(task(), 2000);
</code></pre>

<p>And it seems to work well. Is it correct to use a Timer in this situation, or should I use a Thread or something else?</p>
