code: public synchronized boolean markSuccessful(int id) {
          boolean isSuccessful = false;
  
          SQLiteDatabase db = null;
          try {
              db = getWritableDatabase();
  
              // Set state to processed.
              ContentValues values = new ContentValues();
              values.put(ShareRequestTable.COLUMN_STATE, ShareRequest.STATE_PROCESSED);
  
              isSuccessful = db.update(ShareRequestTable.NAME, values, WHERE_CLAUSE_BY_ID,
                      new String[]{String.valueOf(id)}) > 0;
  
              sLogger.log(WingsDbHelper.class, "markSuccessful", "isSuccessful=" + isSuccessful + " id=" + id);
          } catch (SQLException e) {
              // Do nothing.
          } finally {
              db.close();
          }
          return isSuccessful;
      }
docs: Marks a {@link ShareRequest} as successfully processed.
  
  @param id the id of the {@link ShareRequest}.
  @return true if successful; false otherwise.