Android running infinite loop
<p>I'm creating and android program which needs to to continuously keep sending data over the bluetooth now i use something like this </p>

<pre><code>for(;;)
{
//send message
}
</code></pre>

<p>though this works it freezes my UI and app how can i implement the same without freezing my ui?</p>

<p>iam sure that the app is sending the data as i monitor the data.</p>
