Im writing OnTouchListener. I found out that I can check ActionType with bit operations like
OnTouchListener
if ((event.getAction() & MotionEvent.ACTION_MASK) == MotionEvent.ACTION_MOVE)
however MotionEvent.ACTION_MASKmissing from Android 1.5 (API level 3) How was / was done there?
MotionEvent.ACTION_MASK
ACTION_MASK (, , ..) 8 , getAction() - , , - ( = 11111111 = 255 = 0xff), .
ACTION_MASK
Android 1.5/API 3 MotionEvent (.. multitouch). . , :
MotionEvent
if ((event.getAction() == MotionEvent.ACTION_MOVE) {...}
, , 255 - , API.
docs MotionEvent ( Android) API. API 3, . , , .