Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#constants) \| [Inherited Constants](https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#inhconstants)

# MediaStore.MediaColumns

*** ** * ** ***


`
public
static


interface
MediaStore.MediaColumns
`


`


implements

https://developer.android.com/reference/android/provider/BaseColumns


`

|---|
| android.provider.MediaStore.MediaColumns |

|---|
| Known indirect subclasses [MediaStore.Audio.AudioColumns](https://developer.android.com/reference/android/provider/MediaStore.Audio.AudioColumns), [MediaStore.Audio.Genres.Members](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres.Members), [MediaStore.Audio.Media](https://developer.android.com/reference/android/provider/MediaStore.Audio.Media), [MediaStore.Audio.Playlists](https://developer.android.com/reference/android/provider/MediaStore.Audio.Playlists), [MediaStore.Audio.Playlists.Members](https://developer.android.com/reference/android/provider/MediaStore.Audio.Playlists.Members), [MediaStore.Audio.PlaylistsColumns](https://developer.android.com/reference/android/provider/MediaStore.Audio.PlaylistsColumns), [MediaStore.DownloadColumns](https://developer.android.com/reference/android/provider/MediaStore.DownloadColumns), [MediaStore.Downloads](https://developer.android.com/reference/android/provider/MediaStore.Downloads), [MediaStore.Files.FileColumns](https://developer.android.com/reference/android/provider/MediaStore.Files.FileColumns), [MediaStore.Images.ImageColumns](https://developer.android.com/reference/android/provider/MediaStore.Images.ImageColumns), [MediaStore.Images.Media](https://developer.android.com/reference/android/provider/MediaStore.Images.Media), [MediaStore.Video.Media](https://developer.android.com/reference/android/provider/MediaStore.Video.Media), [MediaStore.Video.VideoColumns](https://developer.android.com/reference/android/provider/MediaStore.Video.VideoColumns) |---|---| | [MediaStore.Audio.AudioColumns](https://developer.android.com/reference/android/provider/MediaStore.Audio.AudioColumns) | Audio metadata columns. | | [MediaStore.Audio.Genres.Members](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres.Members) | Sub-directory of each genre containing all members. | | [MediaStore.Audio.Media](https://developer.android.com/reference/android/provider/MediaStore.Audio.Media) |   | | [MediaStore.Audio.Playlists](https://developer.android.com/reference/android/provider/MediaStore.Audio.Playlists) | *This class was deprecated in API level 31. Android playlists are now deprecated. We will keep the current functionality for compatibility resons, but we will no longer take feature request. We do not advise adding new usages of Android Playlists. M3U files can be used as an alternative.* | | [MediaStore.Audio.Playlists.Members](https://developer.android.com/reference/android/provider/MediaStore.Audio.Playlists.Members) | Sub-directory of each playlist containing all members. | | [MediaStore.Audio.PlaylistsColumns](https://developer.android.com/reference/android/provider/MediaStore.Audio.PlaylistsColumns) | *This interface was deprecated in API level 31. Android playlists are now deprecated. We will keep the current functionality for compatibility reasons, but we will no longer take feature request. We do not advise adding new usages of Android Playlists. M3U files can be used as an alternative.* | | [MediaStore.DownloadColumns](https://developer.android.com/reference/android/provider/MediaStore.DownloadColumns) | Download metadata columns. | | [MediaStore.Downloads](https://developer.android.com/reference/android/provider/MediaStore.Downloads) | Collection of downloaded items. | | [MediaStore.Files.FileColumns](https://developer.android.com/reference/android/provider/MediaStore.Files.FileColumns) | File metadata columns. | | [MediaStore.Images.ImageColumns](https://developer.android.com/reference/android/provider/MediaStore.Images.ImageColumns) | Image metadata columns. | | [MediaStore.Images.Media](https://developer.android.com/reference/android/provider/MediaStore.Images.Media) |   | | [MediaStore.Video.Media](https://developer.android.com/reference/android/provider/MediaStore.Video.Media) |   | | [MediaStore.Video.VideoColumns](https://developer.android.com/reference/android/provider/MediaStore.Video.VideoColumns) | Video metadata columns. | |

<br />

*** ** * ** ***

Common media metadata columns.

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#ALBUM` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_ALBUM` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#ALBUM_ARTIST` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_ALBUMARTIST` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#ARTIST` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_ARTIST` or `https://developer.android.com/reference/android/media/ExifInterface#TAG_ARTIST` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#AUTHOR` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_AUTHOR` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#BITRATE` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_BITRATE` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#BUCKET_DISPLAY_NAME` The primary bucket display name of this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#BUCKET_ID` The primary bucket ID of this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#CAPTURE_FRAMERATE` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_CAPTURE_FRAMERATE` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#CD_TRACK_NUMBER` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_CD_TRACK_NUMBER` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#COMPILATION` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_COMPILATION` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#COMPOSER` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_COMPOSER` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DATA` Absolute filesystem path to the media item on disk. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DATE_ADDED` The time the media item was first added. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DATE_EXPIRES` The time the media item should be considered expired. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DATE_MODIFIED` Indexed value of `https://developer.android.com/reference/java/io/File#lastModified()` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DATE_TAKEN` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_DATE` or `https://developer.android.com/reference/android/media/ExifInterface#TAG_DATETIME_ORIGINAL` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DISC_NUMBER` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_DISC_NUMBER` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DISPLAY_NAME` The display name of the media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DOCUMENT_ID` The "document ID" GUID as defined by the *XMP Media Management* standard, extracted from any XMP metadata contained within this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DURATION` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_DURATION` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#GENERATION_ADDED` Generation number at which metadata for this media item was first inserted. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#GENERATION_MODIFIED` Generation number at which metadata for this media item was last changed. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#GENRE` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_GENRE` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#HEIGHT` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_VIDEO_HEIGHT`, `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_IMAGE_HEIGHT` or `https://developer.android.com/reference/android/media/ExifInterface#TAG_IMAGE_LENGTH` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#INFERRED_DATE` File's approximate creation date. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#INSTANCE_ID` The "instance ID" GUID as defined by the *XMP Media Management* standard, extracted from any XMP metadata contained within this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#IS_DOWNLOAD` Flag indicating if the media item has been marked as being part of the `https://developer.android.com/reference/android/provider/MediaStore.Downloads` collection. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#IS_DRM` Flag indicating if a media item is DRM protected. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#IS_FAVORITE` Flag indicating if the media item has been marked as being a "favorite" by the user. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#IS_PENDING` Flag indicating if a media item is pending, and still being inserted by its owner. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#IS_TRASHED` Flag indicating if a media item is trashed. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#MIME_TYPE` The MIME type of the media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#NUM_TRACKS` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_NUM_TRACKS` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#OEM_METADATA` Column which allows OEMs to store custom metadata for a media file. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#ORIENTATION` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_VIDEO_ROTATION`, `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_IMAGE_ROTATION`, or `https://developer.android.com/reference/android/media/ExifInterface#TAG_ORIENTATION` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#ORIGINAL_DOCUMENT_ID` The "original document ID" GUID as defined by the *XMP Media Management* standard, extracted from any XMP metadata contained within this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#OWNER_PACKAGE_NAME` Package name that contributed this media. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#RELATIVE_PATH` Relative path of this media item within the storage device where it is persisted. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#RESOLUTION` Calculated value that combines `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#WIDTH` and `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#HEIGHT` into a user-presentable string. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#SIZE` Indexed value of `https://developer.android.com/reference/java/io/File#length()` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#TITLE` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_TITLE` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#VOLUME_NAME` Volume name of the specific storage device where this media item is persisted. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#WIDTH` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_VIDEO_WIDTH`, `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_IMAGE_WIDTH` or `https://developer.android.com/reference/android/media/ExifInterface#TAG_IMAGE_WIDTH` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#WRITER` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_WRITER` extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#XMP` Indexed XMP metadata extracted from this media item. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#YEAR` Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_YEAR` extracted from this media item. |

| ### Inherited constants |
|---|
| From interface `https://developer.android.com/reference/android/provider/BaseColumns` |---|---| | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/BaseColumns#_COUNT` The count of rows in a directory. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/BaseColumns#_ID` The unique ID for a row. | |

## Constants

### ALBUM

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ALBUM
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_ALBUM`
extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"album"


### ALBUM_ARTIST

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ALBUM_ARTIST
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_ALBUMARTIST`
extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"album_artist"


### ARTIST

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ARTIST
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_ARTIST`
or `https://developer.android.com/reference/android/media/ExifInterface#TAG_ARTIST` extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"artist"


### AUTHOR

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String AUTHOR
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_AUTHOR`
extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"author"


### BITRATE

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String BITRATE
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_BITRATE`
extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"bitrate"


### BUCKET_DISPLAY_NAME

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String BUCKET_DISPLAY_NAME
```

The primary bucket display name of this media item. This can be
useful to present the user a first-level clustering of related
media items. This is a read-only column that is automatically
computed.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"bucket_display_name"


### BUCKET_ID

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String BUCKET_ID
```

The primary bucket ID of this media item. This can be useful to
present the user a first-level clustering of related media items.
This is a read-only column that is automatically computed.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"bucket_id"


### CAPTURE_FRAMERATE

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String CAPTURE_FRAMERATE
```

Indexed value of
`https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_CAPTURE_FRAMERATE`
extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_FLOAT` , and are read-only and cannot be mutated.

<br />

Constant Value:

"capture_framerate"


### CD_TRACK_NUMBER

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String CD_TRACK_NUMBER
```

Indexed value of
`https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_CD_TRACK_NUMBER` extracted
from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"cd_track_number"


### COMPILATION

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String COMPILATION
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_COMPILATION`
extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"compilation"


### COMPOSER

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String COMPOSER
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_COMPOSER`
extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"composer"


### DATA

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String DATA
```

Absolute filesystem path to the media item on disk.


Apps may use this path to do file operations. However, they should not assume that the
file is always available. Apps must be prepared to handle any file-based I/O errors that
could occur.


From Android 11 onwards, this column is read-only for apps that target
`https://developer.android.com/reference/android/os/Build.VERSION_CODES#R` and higher. On those devices, when creating or
updating a uri, this column's value is not accepted. Instead, to update the
filesystem location of a file, use the values of the `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DISPLAY_NAME` and
`https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#RELATIVE_PATH` columns.


Though direct file operations are supported,
`https://developer.android.com/reference/android/content/ContentResolver#openFileDescriptor(android.net.Uri,%20java.lang.String)` API is recommended for better
performance.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` .

<br />

Constant Value:

"_data"


### DATE_ADDED

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String DATE_ADDED
```

The time the media item was first added.


Value is a non-negative timestamp measured as the number of
seconds since 1970-01-01T00:00:00Z.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"date_added"


### DATE_EXPIRES

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String DATE_EXPIRES
```

The time the media item should be considered expired. Typically only
meaningful in the context of `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#IS_PENDING` or
`https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#IS_TRASHED`.


The value stored in this column is automatically calculated when
`https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#IS_PENDING` or `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#IS_TRASHED` is changed. The default
pending expiration is typically 7 days, and the default trashed
expiration is typically 30 days.


Expired media items are automatically deleted once their expiration
time has passed, typically during the next device idle period.


Value is a non-negative timestamp measured as the number of
seconds since 1970-01-01T00:00:00Z.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"date_expires"


### DATE_MODIFIED

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String DATE_MODIFIED
```

Indexed value of `https://developer.android.com/reference/java/io/File#lastModified()` extracted from this
media item.


Value is a non-negative timestamp measured as the number of
seconds since 1970-01-01T00:00:00Z.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"date_modified"


### DATE_TAKEN

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String DATE_TAKEN
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_DATE` or
`https://developer.android.com/reference/android/media/ExifInterface#TAG_DATETIME_ORIGINAL` extracted from this media
item.


Note that images must define both
`https://developer.android.com/reference/android/media/ExifInterface#TAG_DATETIME_ORIGINAL` and
`ExifInterface#TAG_OFFSET_TIME_ORIGINAL` to reliably determine
this value in relation to the epoch.


Value is a non-negative timestamp measured as the number of
milliseconds since 1970-01-01T00:00:00Z.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"datetaken"


### DISC_NUMBER

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String DISC_NUMBER
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_DISC_NUMBER`
extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"disc_number"


### DISPLAY_NAME

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String DISPLAY_NAME
```

The display name of the media item.


For example, an item stored at
`/storage/0000-0000/DCIM/Vacation/IMG1024.JPG` would have a
display name of `IMG1024.JPG`.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` .

<br />

Constant Value:

"_display_name"


### DOCUMENT_ID

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String DOCUMENT_ID
```

The "document ID" GUID as defined by the *XMP Media
Management* standard, extracted from any XMP metadata contained
within this media item. The value is `null` when no metadata
was found.


Each "document ID" is created once for each new resource. Different
renditions of that resource are expected to have different IDs.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"document_id"


### DURATION

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String DURATION
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_DURATION`
extracted from this media item.


Value is a non-negative duration in milliseconds.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"duration"


### GENERATION_ADDED

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String GENERATION_ADDED
```

Generation number at which metadata for this media item was first
inserted. This is useful for apps that are attempting to quickly
identify exactly which media items have been added since a previous
point in time. Generation numbers are monotonically increasing over
time, and can be safely arithmetically compared.


Detecting media additions using generation numbers is more robust
than using `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DATE_ADDED`, since those values may change in
unexpected ways when apps use `https://developer.android.com/reference/java/io/File#setLastModified(long)` or
when the system clock is set incorrectly.


Note that before comparing these detailed generation values, you
should first confirm that the overall version hasn't changed by
checking `https://developer.android.com/reference/android/provider/MediaStore#getVersion(android.content.Context,%20java.lang.String)`, since that
indicates when a more radical change has occurred. If the overall
version changes, you should assume that generation numbers have been
reset and perform a full synchronization pass.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

**See also:**

- `https://developer.android.com/reference/android/provider/MediaStore#getGeneration(android.content.Context,%20java.lang.String)`

Constant Value:

"generation_added"


### GENERATION_MODIFIED

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String GENERATION_MODIFIED
```

Generation number at which metadata for this media item was last
changed. This is useful for apps that are attempting to quickly
identify exactly which media items have changed since a previous
point in time. Generation numbers are monotonically increasing over
time, and can be safely arithmetically compared.


Detecting media changes using generation numbers is more robust than
using `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DATE_MODIFIED`, since those values may change in
unexpected ways when apps use `https://developer.android.com/reference/java/io/File#setLastModified(long)` or
when the system clock is set incorrectly.


Note that before comparing these detailed generation values, you
should first confirm that the overall version hasn't changed by
checking `https://developer.android.com/reference/android/provider/MediaStore#getVersion(android.content.Context,%20java.lang.String)`, since that
indicates when a more radical change has occurred. If the overall
version changes, you should assume that generation numbers have been
reset and perform a full synchronization pass.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

**See also:**

- `https://developer.android.com/reference/android/provider/MediaStore#getGeneration(android.content.Context,%20java.lang.String)`

Constant Value:

"generation_modified"


### GENRE

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String GENRE
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_GENRE`
extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"genre"


### HEIGHT

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String HEIGHT
```

Indexed value of
`https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_VIDEO_HEIGHT`,
`https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_IMAGE_HEIGHT` or
`https://developer.android.com/reference/android/media/ExifInterface#TAG_IMAGE_LENGTH` extracted from this media
item.


Type: INTEGER.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"height"


### INFERRED_DATE

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [R Extensions 15](https://developer.android.com/sdkExtensions)

```
public static final String INFERRED_DATE
```

File's approximate creation date.


Following is the derivation logic:
1. If `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DATE_TAKEN` is present, use it.
2. If `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DATE_TAKEN` is absent, use `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DATE_MODIFIED`.
Note: When `https://developer.android.com/reference/android/provider/MediaStore#QUERY_ARG_MEDIA_STANDARD_SORT_ORDER` query argument
is used, the sorting is based on this column in descending order.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"inferred_date"


### INSTANCE_ID

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String INSTANCE_ID
```

The "instance ID" GUID as defined by the *XMP Media
Management* standard, extracted from any XMP metadata contained
within this media item. The value is `null` when no metadata
was found.


This "instance ID" changes with each save operation of a specific
"document ID".


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"instance_id"


### IS_DOWNLOAD

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String IS_DOWNLOAD
```

Flag indicating if the media item has been marked as being part of
the `https://developer.android.com/reference/android/provider/MediaStore.Downloads` collection.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"is_download"


### IS_DRM

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String IS_DRM
```

Flag indicating if a media item is DRM protected.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` .

<br />

Constant Value:

"is_drm"


### IS_FAVORITE

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String IS_FAVORITE
```

Flag indicating if the media item has been marked as being a
"favorite" by the user.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` .

<br />

**See also:**

- `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#IS_FAVORITE`
- `https://developer.android.com/reference/android/provider/MediaStore#QUERY_ARG_MATCH_FAVORITE`
- `https://developer.android.com/reference/android/provider/MediaStore#createFavoriteRequest(android.content.ContentResolver,%20java.util.Collection<android.net.Uri>,%20boolean)`

Constant Value:

"is_favorite"


### IS_PENDING

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String IS_PENDING
```

Flag indicating if a media item is pending, and still being inserted
by its owner. While this flag is set, only the owner of the item can
open the underlying file; requests from other apps will be rejected.


Pending items are retained either until they are published by setting
the field to `0`, or until they expire as defined by
`https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DATE_EXPIRES`.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` .

<br />

**See also:**

- `https://developer.android.com/reference/android/provider/MediaStore#QUERY_ARG_MATCH_PENDING`

Constant Value:

"is_pending"


### IS_TRASHED

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String IS_TRASHED
```

Flag indicating if a media item is trashed.


Trashed items are retained until they expire as defined by
`https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#DATE_EXPIRES`.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` .

<br />

**See also:**

- `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#IS_TRASHED`
- `https://developer.android.com/reference/android/provider/MediaStore#QUERY_ARG_MATCH_TRASHED`
- `https://developer.android.com/reference/android/provider/MediaStore#createTrashRequest(android.content.ContentResolver,%20java.util.Collection<android.net.Uri>,%20boolean)`

Constant Value:

"is_trashed"


### MIME_TYPE

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String MIME_TYPE
```

The MIME type of the media item.


This is typically defined based on the file extension of the media
item. However, it may be the value of the `format` attribute
defined by the *Dublin Core Media Initiative* standard,
extracted from any XMP metadata contained within this media item.


Note: the `format` attribute may be ignored if the top-level
MIME type disagrees with the file extension. For example, it's
reasonable for an `image/jpeg` file to declare a `format`
of `image/vnd.google.panorama360+jpg`, but declaring a
`format` of `audio/ogg` would be ignored.


This is a read-only column that is automatically computed.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` .

<br />

Constant Value:

"mime_type"


### NUM_TRACKS

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String NUM_TRACKS
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_NUM_TRACKS`
extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"num_tracks"


### OEM_METADATA

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [T Extensions 15](https://developer.android.com/sdkExtensions)

```
public static final String OEM_METADATA
```

Column which allows OEMs to store custom metadata for a media file. It is expected to
contain a JSON string.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_BLOB` , and are read-only and cannot be mutated.

<br />

Constant Value:

"oem_metadata"


### ORIENTATION

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ORIENTATION
```

Indexed value of
`https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_VIDEO_ROTATION`,
`https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_IMAGE_ROTATION`, or
`https://developer.android.com/reference/android/media/ExifInterface#TAG_ORIENTATION` extracted from this media item.


For consistency the indexed value is expressed in degrees, such as 0,
90, 180, or 270.


Type: INTEGER.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"orientation"


### ORIGINAL_DOCUMENT_ID

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ORIGINAL_DOCUMENT_ID
```

The "original document ID" GUID as defined by the *XMP Media
Management* standard, extracted from any XMP metadata contained
within this media item.


This "original document ID" links a resource to its original source.
For example, when you save a PSD document as a JPEG, then convert the
JPEG to GIF format, the "original document ID" of both the JPEG and
GIF files is the "document ID" of the original PSD file.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"original_document_id"


### OWNER_PACKAGE_NAME

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String OWNER_PACKAGE_NAME
```

Package name that contributed this media. The value may be
`NULL` if ownership cannot be reliably determined.


From Android `https://developer.android.com/reference/android/os/Build.VERSION_CODES#UPSIDE_DOWN_CAKE` onwards,
visibility and query of this field will depend on
[package visibility](https://developer.android.com/training/basics/intents/package-visibility).
For `https://developer.android.com/reference/android/content/ContentResolver#query(android.net.Uri,%20java.lang.String[],%20android.os.Bundle,%20android.os.CancellationSignal)` operation, result set will
be restricted to visible packages only.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"owner_package_name"


### RELATIVE_PATH

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String RELATIVE_PATH
```

Relative path of this media item within the storage device where it
is persisted. For example, an item stored at
`/storage/0000-0000/DCIM/Vacation/IMG1024.JPG` would have a
path of `DCIM/Vacation/`.


This value should only be used for organizational purposes, and you
should not attempt to construct or access a raw filesystem path using
this value. If you need to open a media item, use an API like
`https://developer.android.com/reference/android/content/ContentResolver#openFileDescriptor(android.net.Uri,%20java.lang.String)`.


When this value is set to `NULL` during an
`https://developer.android.com/reference/android/content/ContentResolver#insert(android.net.Uri,%20android.content.ContentValues)` operation, the newly created item will
be placed in a relevant default location based on the type of media
being inserted. For example, a `image/jpeg` item will be placed
under `https://developer.android.com/reference/android/os/Environment#DIRECTORY_PICTURES`.


You can modify this column during an `https://developer.android.com/reference/android/content/ContentResolver#update(android.net.Uri,%20android.content.ContentValues,%20android.os.Bundle)`
call, which will move the underlying file on disk.


In both cases above, content must be placed under a top-level
directory that is relevant to the media type. For example, attempting
to place a `audio/mpeg` file under
`https://developer.android.com/reference/android/os/Environment#DIRECTORY_PICTURES` will be rejected.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` .

<br />

Constant Value:

"relative_path"


### RESOLUTION

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String RESOLUTION
```

Calculated value that combines `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#WIDTH` and `https://developer.android.com/reference/android/provider/MediaStore.MediaColumns#HEIGHT`
into a user-presentable string.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"resolution"


### SIZE

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String SIZE
```

Indexed value of `https://developer.android.com/reference/java/io/File#length()` extracted from this media
item.


Value is a non-negative number of bytes.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"_size"


### TITLE

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String TITLE
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_TITLE`
extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"title"


### VOLUME_NAME

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String VOLUME_NAME
```

Volume name of the specific storage device where this media item is
persisted. The value is typically one of the volume names returned
from `https://developer.android.com/reference/android/provider/MediaStore#getExternalVolumeNames(android.content.Context)`.


This is a read-only column that is automatically computed.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"volume_name"


### WIDTH

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String WIDTH
```

Indexed value of
`https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_VIDEO_WIDTH`,
`https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_IMAGE_WIDTH` or
`https://developer.android.com/reference/android/media/ExifInterface#TAG_IMAGE_WIDTH` extracted from this media item.


Type: INTEGER.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"width"


### WRITER

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String WRITER
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_WRITER`
extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` , and are read-only and cannot be mutated.

<br />

Constant Value:

"writer"


### XMP

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String XMP
```

Indexed XMP metadata extracted from this media item.


The structure of this metadata is defined by the [*XMP
Media Management* standard](https://en.wikipedia.org/wiki/Extensible_Metadata_Platform), published as ISO 16684-1:2012.


This metadata is typically extracted from a
`https://developer.android.com/reference/android/media/ExifInterface#TAG_XMP` contained inside an image file or from
a `XMP_` box contained inside an ISO/IEC base media file format
(MPEG-4 Part 12).


Note that any location details are redacted from this metadata for
privacy reasons.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_BLOB` , and are read-only and cannot be mutated.

<br />

Constant Value:

"xmp"


### YEAR

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String YEAR
```

Indexed value of `https://developer.android.com/reference/android/media/MediaMetadataRetriever#METADATA_KEY_YEAR`
extracted from this media item.


This constant represents a column name that can be used with a `https://developer.android.com/reference/android/content/ContentProvider` through a `https://developer.android.com/reference/android/content/ContentValues` or `https://developer.android.com/reference/android/database/Cursor` object. The values stored in this column are `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

<br />

Constant Value:

"year"