android - ACTION_CANCEL when touch size becomes too large? -
android - ACTION_CANCEL when touch size becomes too large? -
i researching "in-pocket" smartphone interaction. using android implementation , have run next problem:
whenever press fingers firmly against screen (which happens lot in utilize case), android issues action_cancel
current motionevent
, app (and in fact every app tried) stops receiving touch events until fingers lifted off screen. utilize lg g2 , samsung galaxy alpha testing. on g2, problem seems occur when getpressure()
first exceeds 1.0
1 pointer. galaxy alpha, however, returns 1.0
getpressure()
, behaves g2. other parameters vary seem cluster around values when action_cancel
occurs.
i have found few similar cases (e.g. motionevent.action_cancel blocking subsequent action_up on button) , no solution. tried requestdisallowintercepttouchevent()
no avail. can tell logs, getevent
, show pointer location
developer options scheme (viewrootimpl
, exact) keeps reporting events after problem occurs, not dispatched app anymore due action_cancel
.
does know whether behavior intended , whether there way around this? suppose seek reading events straight /dev/input/event<x>
, wondering if there simpler solution.
sorry long-winded post! love hear suggestions.
android touch multi-touch motionevent
Comments
Post a Comment