Intercepting touch events for Android

I would like to create an overlay that catches all touch events, logs them, but is mostly transparent and allows touch events (and all other gesture) to interact with the underlying applications.

What I have tried so far are the solutions suggested here.

Android overlay to capture ALL touch and transfer them?

Android: Multi touch and TYPE_SYSTEM_OVERLAY

but I can either have "transparent", which allows all touch events to be passed to the main applications, or an overlay that intercepts all touch events without letting them "miss".

For what I've read and tried so far, this appears to be a security limitation from Android 4.x, and it may not be able to be done at all.

I'm open to any solution, so maybe there is a way to make this work as root, or with the NDK, or dunno, whatever, since I'm completely new to Android programming.

+3
android events touch overlay touch-event


source to share


No one has answered this question yet

See similar questions:

22
Android overlay to capture ALL touch and transfer them?
nine
Android: Multi touch and TYPE_SYSTEM_OVERLAY

or similar:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2097
Is there a way to run Python on Android?
1678
Binding events to dynamically created elements?
1002
Grid motion detection
268
Create a system overlay window (always on top)
22
Android overlay to capture ALL touch and transfer them?
3
Play on clothes



All Articles
Loading...
X
Show
Funny
Dev
Pics