title: How to send touch events (Screen Events) to another app in android
body: <p>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.</p>
  
  <p>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).</p>
  
  <p>I know that there is a way to send gestures to android app using </p>
  
  <p>adb shell input swipe 400 200 300 200</p>
  
  <p>but that is not working from inside android app.</p>
  
  <p>Can you suggest any solution?</p>