Start a thread a second time
<pre><code>thread = new Thread()
        {
            @Override
            public void run() {
                while(!requestedToExit)
                {
                    SystemClock.sleep(3000);
                    Log.d("debug", "in");
                }
            }
        };
</code></pre>

<p>So a button got an event, Each time I click on it it's start the thread (if the previous thread is not alive).</p>

<p>So I tried use thread.start() but it throw thread already started. I tried .run(), nothing happens, I also tried each time I click on the button, and it's possible to run it again, create a new thread and start it : nothing.</p>

<p>Some ideas ?</p>

<hr>

<p>Using Runnable : </p>

<pre><code>   r= new Runnable(){

            public void run() {
                while(!requestedToExit)
                {
                    Log.d("debug", "in");
                    SystemClock.sleep(3000);

                }
            }
        };
</code></pre>

<p>Then I use in my listener : </p>

<pre><code>thread = new Thread(injection);
thread.start();
</code></pre>

<p>But I only see the debug the first time, he never enter into it after.</p>

<p>Thanks in advance</p>
