Reputation: 57
I'm working on an Android project where I need to count the number of clicks or screen touches that occur on an underlying application, even when my app is running in the foreground.
Here's the scenario:
I've tried several approaches, including:
WindowManager
and SYSTEM_ALERT_WINDOW
permission, but I'm struggling to capture touch events that are intended for the underlying app.I'm looking for a way to achieve this without requiring root access or modifying the underlying app.
Here are my specific questions:
Any guidance or code examples would be greatly appreciated.
Thanks in advance!
Upvotes: 0
Views: 23