In the Extension notes: for android java.util.concurrent.ScheduledThreadPoolExecutor what is this?
<pre><code> public class CustomScheduledExecutor extends ScheduledThreadPoolExecutor {

   static class CustomTask implements RunnableScheduledFuture { ... 

   protected  RunnableScheduledFuture decorateTask(
            Runnable r, RunnableScheduledFuture task) {
   return new CustomTask(r, task);
   }
</code></pre>

<p>Ive been trying to use ScheduledThreadPoolExecutor in an android app but it doesnt work the same as in a java app</p>

<pre><code>}
@Override
public void onClick(View view)
   {

    Runnable runner = new Runnable()
    {

        @Override
        public void run()
        {

            rollthedice();

        }
    };


    if(view == continuous)
    {
    if(now == null)
        {now = scheduler.scheduleAtFixedRate(runner, 0, 250,     TimeUnit.MILLISECONDS);

    }
    else
        return;
    }
    if(view == stop)
    {
        if(now != null)
        {
            now.cancel(true);
            now = null;
        }

        else
            return;
    }
    if(view == roll)
        rollthedice();
    if(view == exit)
        System.exit(0);
   }
  }
</code></pre>

<p>this is my  code, i cannot get the continuous button to keep going, if it was a java app it would work fine </p>
