code: public synchronized boolean createShareRequest(String filePath, Destination destination) {
          boolean isSuccessful = false;
  
          SQLiteDatabase db = null;
          try {
              db = getWritableDatabase();
  
              // Create new record.
              ContentValues values = new ContentValues();
              values.put(ShareRequestTable.COLUMN_FILE_PATH, filePath);
              values.put(ShareRequestTable.COLUMN_DESTINATION, destination.getHash());
              values.put(ShareRequestTable.COLUMN_TIME_CREATED, System.currentTimeMillis());
              values.put(ShareRequestTable.COLUMN_STATE, ShareRequest.STATE_PENDING);
              values.put(ShareRequestTable.COLUMN_FAILS, 0);
  
              isSuccessful = db.insert(ShareRequestTable.NAME, null, values) != ID_ERROR;
  
              sLogger.log(WingsDbHelper.class, "createShareRequest", "isSuccessful=" + isSuccessful + " filePath="
                      + filePath + " destination=" + destination.getHash());
          } catch (SQLException e) {
              // Do nothing.
          } finally {
              db.close();
          }
  
          // Reset retry policy because a new record is created.
          RetryPolicy.reset(mContext);
  
          return isSuccessful;
      }
docs: Creates a new {@link ShareRequest}.
  
  @param filePath    the local path to the file to share.
  @param destination the destination of the share.
  @return true if successful; false otherwise.