title: Need UI Watcher Sample Code
body: <p>Hi Automation Experts,</p>
  
  <p>URL: <a href="http://developer.android.com/tools/help/uiautomator/UiWatcher.html" rel="nofollow">http://developer.android.com/tools/help/uiautomator/UiWatcher.html</a></p>
  
  <p><strong>How to achieve this:</strong> <em>You can use this method to handle known blocking issues that are preventing the test from proceeding. For example, you can check if a dialog appeared that is blocking the test, then close the dialog or perform some other appropriate action to allow the test to continue</em></p>
  
  <p>Please need an sample code for say "Press OK on a pop up "Can't play this video" while trying to play a video and continue our tests"?</p>