title: Handler.postDelayed(...) does not delay the Runnable
body: <p>i've implemented an OnCompletionListener by myself which looks like this:</p>
  
  <pre><code>public class SongEndCompletionListener  implements OnCompletionListener{
  
      String nextView;
      Context actualActivity;
      int stopTime;
  
      public SongEndCompletionListener(Context activity, String nextView, int time) {
          this.nextView = nextView;
          actualActivity = activity;
      }
      @Override
      public void onCompletion(MediaPlayer arg0) {
  
  
              Handler handler = new Handler(); 
              handler.postDelayed(new Runnable() { 
                   public void run() { 
                          try {
                       Intent stopplay;
                       stopplay = new Intent(actualActivity,Class.forName(nextView));
                       actualActivity.startActivity(stopplay);    
                   } catch (ClassNotFoundException e) {
                      // TODO Auto-generated catch block
                      e.printStackTrace();
                      } 
                   } 
              }, stopTime); 
  
  
      }
  }
  </code></pre>
  
  <p>I want it to pause for stopTime seconds, but what it actually does is as soon as the audiofile ends it jumps to the next view.
  Could you maybe point me towards where i am wrong or how i could delay the switch to another Activity differently?</p>
  
  <p>Every hint is appreciated!</p>