how to associate a thread or background process to our activity
<p>i have to display text of the playing audio (file in sdcard). After given audio progress time i have to change the text of my TextView.</p>

<p>For this i think i should make a thread which monitor this stuff and behave like following: </p>

<pre><code>if((player.isPlaying) == 0)
{
   get new text and set to textView   
   pick relavent audio and play
}
</code></pre>

<p><strong>can we associate a thread or some function like that to our Activity that constantly monitors it</strong></p>

<p>I am sorry i am new to android please help me with some example or at least idea!!!</p>
