I have to write a test case using UIautomator to swipe it out from the recent apps.I am trying below code but not sure what should be "id of the app".I tried running uiautomatorviewer and all apps are showing same resourceId.
uiDevice.pressRecentApps();
UiObject app = uiDevice.findObject(new UiSelector().resourceId("The id of the app"));
app.swipeLeft(100);