code: public void setActiveLogId(String id, String activeLogId) {
          Integer value = null;
          if (activeLogId != null) {
              value = Integer.parseInt(activeLogId);
          }
          db.update("UPDATE Tasks SET activeLogId = ? WHERE id = ?",
                  value, Integer.parseInt(id));
      }
docs: TaskManager use only