title: Android: Unregister camera button
body: <p>I tried to bind some actions to a camera button:</p>
  
  <pre><code>videoPreview.setOnKeyListener(new OnKeyListener() {
      public boolean onKey(View v, int keyCode, KeyEvent event) {
          if(event.getAction() == KeyEvent.ACTION_DOWN) {
              switch(keyCode) {
                  case KeyEvent.KEYCODE_CAMERA:
                      //videoPreview.onCapture(settings);
                      onCaptureButton();
  ...
              }
          }
          return false;
      }
  });
  </code></pre>
  
  <p>Pressing the button however the application crashes because the original Camera application starts.</p>
  
  <p>Does anyone know how to prevent Camera application start when the camera button is pressed?</p>