I am working on an android application extending activity and implementing Runnable.

The problem is that the run() function is not launched and I'm not sure if implementing Runnable make it launch automaticly as AsyncTask?

Here is my code

```
 public class MainActivity extends FragmentActivity implements
        ActionBar.TabListener, Runnable {

        ...

        @Override
        public void run() {
         // mediaPlayer is myMediaPlayer
         // progress is my SeekBar
        Log.w("Tunesto", "testabababab");
         int currentPosition = 0;
         int total = mediaPlayer.getDuration();
         progress.setMax(total);
         while (mediaPlayer != null && currentPosition < total) {
             try {
                 Thread.sleep(1000);
                 currentPosition = mediaPlayer.getCurrentPosition();
             } catch (InterruptedException e) {
                 return;
             } catch (Exception e) {
                 return;
             }
             progress.setProgress(currentPosition);
             Log.w("MyApp", String.valueOf(currentPosition));
         }
        }
 }

```

Obviously if I launch Run fro, the UI Thread it will freeze the screen because of the sleep method, so how should I do to let the Run method to run?

Thank you!