title: Handler with ProgressBar
body: <p>Im am trying to create a delayed action, when I touch the Display for more than 5 Seonds.
  I am using a Handler and a Runnable for this, using <code>handler.postDelayed(runnable, 5000);</code>
  I also want a ProgressBar, to show, when the Handler will kickoff. From researching i found, that i have to Override the <code>handleMessage()</code> method.. this is what i tried.</p>
  
  <pre><code>private Handler handler = new Handler() {
      @Override
      public void handleMessage(Message msg) {
          super.handleMessage(msg);
          progress.setProgress(progress.getProgress() + 100);
          sendEmptyMessageDelayed(0, 100);
      }
  };
  private Runnable runnable = new Runnable() {
      public void run() {
          playAlarm();
      }
  };
  
  ...
  
  progress = (ProgressBar) findViewById(R.id.progressBar1);
  
  ...
  
  @Override
  public boolean onTouchEvent(MotionEvent e) {
      if (e.getAction() == MotionEvent.ACTION_DOWN) {
          // Execute Runnable after 5000 milliseconds = 5 seconds.
          progress.setProgress(0);
          handler.postDelayed(runnable, 5000);
          mBooleanIsPressed = true;
      }
  
      if (e.getAction() == MotionEvent.ACTION_UP) {
          if (mBooleanIsPressed) {
              mBooleanIsPressed = false;
              progress.setProgress(0);
              handler.removeCallbacks(runnable);
          }
      }
      return true;
  }
  </code></pre>
  
  <p>It is not crashing. But the ProgressBar is simply not showing anything.</p>