Thursday, 25 March 2021

How to track every reasonable click in android app?

I need to track an event each time user clicks on any clickable view in my app. I want to do this generally so e.g. in my main activity.
I know I can override onUserInteraction() or dispatchTouchEvent() but these are running even for the clicks which are not clickable views.

I don't need to differ between clickable views, just the fact it is clickable is enough.

Is this possible?



from How to track every reasonable click in android app?

No comments:

Post a Comment