code: public static DownloadProgressListener getDownloadListenerForTask(final GroundyTask groundyTask) {
      return new DownloadProgressListener() {
        @Override
        public void onProgress(String url, int progress) {
          groundyTask.updateProgress(progress);
        }
      };
    }
docs: Returns a progress listener that will post progress to the specified groundyTask.
  
  @param groundyTask the groundyTask to post progress to. Cannot be null.
  @return a progress listener