How can I use delay on textview for show text?
<p>When i click button first time. Program will random text. then when i press button again it will delay slow to show text</p>

<p>my code</p>

<pre><code>public void onClick(View v) {
    final MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.yeehaw);
    showRandom = !showRandom;
    t = new Thread() {
        public void run() {
            try {
                while(showRandom) {                                     
                    sleep(5);
                    mp.start();
                    handler.sendMessage(handler.obtainMessage());
                }
            } catch(Exception ex) {
                ex.printStackTrace();
            }
        }
    };
    t.start();
}
</code></pre>
