How can we simulate long press by touch event? or how can we calculate the time that screen is touched, all in ACTION_DOWN state?
You have to count time between ACTION_DOWN and ACTION_UP events. It's impossible to calculate this time only in ACTOIN_DOWN state, cause it's the START event of sequence of events representing TAP of LONG TAP event