well, intuitively it should take one action:
if button is short pressed do this
if button is long pressed do that
this is how it works on every phone or device.
i would measure the time between
if the measured time is lower than xxxx millis, it is a short click:
invoke void shortClick()
if millis longer than xxxx millis, invoke void longClick()