code: public static void cancelTaskById(Context context, final long id, final int reason,
        final SingleCancelListener cancelListener,
        Class<? extends GroundyService> groundyServiceClass) {
      if (id <= 0) {
        throw new IllegalStateException("id must be greater than zero");
      }
      new GroundyServiceConnection(context, groundyServiceClass) {
        @Override
        protected void onGroundyServiceBound(GroundyService.GroundyServiceBinder binder) {
          int result = binder.cancelTaskById(id, reason);
          if (cancelListener != null) {
            cancelListener.onCancelResult(id, result);
          }
        }
      }.start();
    }
docs: Cancels all tasks of the specified group w/ the specified reason.
  
  @param context used to interact with the service
  @param id the value to cancel
  @param cancelListener callback for cancel result