title: Handler.sendMessageDelayed(msg, delay) not working correctly
body: <p>I have defined a splashscreen to be shown during loading. But depending on the internet connection it can takes only 600ms to load or sometimes 5000ms. So i defined that the splashscreen is at least shown 3000ms so that the user is not irritated by flackering screen.</p>
  
  <p>I define the start of the splashscreen the following way:</p>
  
  <pre><code> private void splashScreen() {
          setContentView(R.layout.splashscreen);
          splash = (ImageView) findViewById(R.id.splashscreenLayer);
          startSplashTime = new Date();
          new LoadingThread().start(); 
      }
  </code></pre>
  
  <p>In the LoadingThread I check the network and load data from the Internet:</p>
  
  <pre><code>private class LoadingThread extends Thread {
  
          @Override
          public void run() {
              checkNetwork();
          }
  
      }
  </code></pre>
  
  <p>As soon as loading is done, i send a message to my handler defined in the MainActivity:</p>
  
  <pre><code>public void stopSplash() {
          Message msg = new Message();
          msg.what = STOPSPLASH;
  
          Date endSplashTime = new Date();
          long time = endSplashTime.getTime() - startSplashTime.getTime();
          System.out.println("Time Splashscreen was displayed: " + time);
          if (time &lt; SPLASH_MIN_TIME) {
              long delay = SPLASH_MIN_TIME - time;
              System.out.println("Delay Splashscreen for: " + delay);
              splashHandler.sendMessageDelayed(msg, delay);
          } else {
              System.out.print("Show Splashscreen now");
              splashHandler.sendMessage(msg);
          }
      }
  </code></pre>
  
  <p>Some code lines on the LoadingThreads are called by runOnUIThread(). Unfortunately, if time &lt; SPLASH_MIN_TIME the message isn't delayed but send instantly. I think with sendMessageDelayed() this shouldn't be the case. Anybody knows why?
  The sysout shows that the delay time is calculated correctly. Thanks!</p>