How to send touch events (Screen Events) to another app in android

1.4k Views Asked by At

I am trying to develop an image processing based PowerPoint controller app on Android. My app will run in background and will find out hand actions.

My Android app captures images from camera and tries to find out left or right movement of hand, based on the action I want to send swipe-left/swipe-right to office suite application (which is displaying a ppt).

I know that there is a way to send gestures to android app using

adb shell input swipe 400 200 300 200

but that is not working from inside android app.

Can you suggest any solution?

0

There are 0 best solutions below