I am an undergraduate assistant on the Android Accessibility Project. My task is to collect as much data as possible about the user's capabilities, including touch events and other interactions with views. I need 2 services: an availability service to collect information about the current view interaction and a TouchListener service that can intercept MotionEvents .
My problem is with the TouchListener service. Is there any known way to intercept all touch events and pass them to the current view?
In fact, it seems that continuous listening to touch events requires an invisible system overlay view, but the view can either intercept all touch events, or NOT send them to the rear view, or it can send even events back and register the touch event as an ambiguous ACTION_OUTSIDE event, not giving details about the interaction.
My question is similar to this one and the obstacle is discussed here. If someone found a workaround, please write!
source share