I develop a simple Android app, and I want to know how many fingers is touching the screen. It's simple with OnTouch event but this solution doesn't work if the user touch the keyboard software (for security and privacy issues)
I have tried to use a specific overlay like this : Creating a system overlay window
It work, the onTouch event is called everytime, everywhere, but the overlay block all the touch event and the app is unusable (touch button, write with the keyboard software, all interaction doesn't works) How can I receive touch events on my overlay and on my others view behind this overlay ?