public void closeRunningApp(String deviceID,String app_package) throws InterruptedException, IOException {
  cmd.runCommand("adb -s " + deviceID + " shell am force-stop "+ app_package);
}

public void closeRunningApp ( String deviceID , String app_package ) throws InterruptedException , IOException { cmd . runCommand ( "adb -s " + deviceID + " shell am force-stop " + app_package ) ; }
this method will close the running app
