title: onKeyDown and onKeyLongPress
body: <p>I want my application to react differently to a normal and a long pressed Key Event of the Volume Buttons. </p>
  
  <p>I've already seen <a href="https://stackoverflow.com/questions/7493531/trying-to-catch-the-volume-onkeylongpress-not-working">this</a>, but if I keep the volume button pressed, I get a lot of <code>KeyDown</code> Events before I get the <code>KeyLongPressed</code> Event. </p>
  
  <p>I'd like to have either one event or the other, not both, so that I can adjust the Volume at a short press and skip a track at a long press. </p>
  
  <p>Can you help me out here?</p>
  
  <p>This is my code:</p>
  
  <pre><code>    @Override
  public boolean onKeyLongPress(int keyCode, KeyEvent event) {
      if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) 
      {
          Log.d("Test", "Long press!");
          return true;
      }
      return super.onKeyLongPress(keyCode, event);
  }
  
  @Override
  public boolean onKeyDown(int keyCode, KeyEvent event) {
      if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) {
          event.startTracking();
          Log.d("Test", "Short");
          return true;
      }
  
      return super.onKeyDown(keyCode, event);
  }
  </code></pre>
  
  <p>Any help appreciated!
   - Iris</p>