ScheduledExecutorService doesnt start
<p>I have some Problems with ScheduledExecutorService.
I want to start the notification after some time. In this case its 10 seconds. But after 10 seconds it doesnt start. All functions beyond this working correctly. </p>

<p>Here is the code:</p>

<pre><code> ScheduledExecutorService scheduler =
                    Executors.newSingleThreadScheduledExecutor();
                 scheduler.schedule(new Runnable() { 
                   public void run() { 
                       Toast.makeText(BService.this, "It works", Toast.LENGTH_SHORT).show();

                        // Display a notification about us starting.  We put an icon in the status bar.
                        showNotification();
                    } 
                  }, 10, TimeUnit.SECONDS);
</code></pre>

<p>Thanks for help
Roa</p>
