code: public static Uri appendId(Uri uri, Cursor cursor) {
          return ContentUris.withAppendedId(uri, cursor.getLong(cursor.getColumnIndexOrThrow(_ID)));
      }
docs: Append the cursor's {@link BaseColumns#_ID _ID} value to the URI.
  
  @throws IllegalArgumentException if the cursor does not have an _id column