title: How to remove all apps in memory through UIAutomators?
body: <p>I wanted to remove all Apps that is in memory for a clean start. If I know the apps in memory, that could be done as follow</p>
  
  <pre><code>    try
      {
          getUiDevice().pressRecentApps();
          UiObject uio = new UiObject(new UiSelector().text("apps one"));
          uio.swipeRight(20);
          uio = new UiObject(new UiSelector().text("facebook"));
          uis.swipeRight(20);
  
      }
      catch (RemoteException e)
      {
          e.printStackTrace();
      }
  </code></pre>
  
  <p>However, what I wanted is not knowing the list of current Apps, I just want to open up the Apps List in memory, and swipe them away. Is there a way to write a For-Loop for that getting the list of Apps in memory through UiAutomator API?</p>