I want to detect gestures that's done by user without touching screen, i.e., the user just swipes his hand over(for example, 3 cm from the screen) the screen of an Android device from the speaker to the microphone. I tried the Sensor type TYPE_PROXIMITY, via which it seems the device knows user just put his hands near the device and then off it. But I want to know the direction of the gesture, that is, whether the user swipes his palm from the speaker to the microphone, or the opposite. Should I try some other Sensor type? Or need I combine multiple types of Sensor to achieve it?
Briefly, I want to know: 1. How to detect user swiping over the screen? 2. How to detect the direction of the swipe?
PS: it's not gesture detecting of screen touching, which I can handle by implementing GestureDetector.
Kindest regards, Nessus.