title: how to wait for a device to complete last adb command before launching another one?
body: <p>I created an app that launch adb commands to a device and I need to wait until the device has finished excecute the command before launching another. Some commands have a wait option or produce an output i can read (so i know it is completed) but if I input a gesture like a TAP on something that makes the device process something for example TAP on an App icon and wait for the App to be open.</p>
  
  <p>Is there a way to somehow know the App opening is completed?</p>