Here is the (weird) solution.
It seems that the swipeDown gesture is not really a gesture but more a button click.
That means that you should use the callback methods of your activity to capture these events.
private static final int KEY_SWIPE_DOWN = 4;
@Override
public boolean onKeyUp(int keyCode, KeyEvent event)
{
if (keyCode == KEY_SWIPE_DOWN)
{
// there was a swipe down event
return true;
}
return false;
}
I think you do not need to care about the onKeyDown() callback because this callback is only triggered directly before the onKeyUp() event and not when you are beginning the gesture.