I am trying to add touch events from a file to the current application (build a new touch event according to the data found in the file ), and I am trying to understand the chain of calls when a "real" touch event is triggered.
From all the searches I conducted, I found that Activity.dispatchTouchEvent(ev)
is the first method called when we have a touch event, then its forwarded to ViewGroup.dispatchTouchEvent
and then to View.dispatchTouchEvent
.
I want to find what is being called before Activity.dispatchTouchEvent(ev)
and how the events is transferred from the HW to this method.