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.Audio.AlbumColumns#constants)

# MediaStore.Audio.AlbumColumns

*** ** * ** ***

` public static interface MediaStore.Audio.AlbumColumns `   
` `

|---|
| android.provider.MediaStore.Audio.AlbumColumns |

Known indirect subclasses [MediaStore.Audio.Albums](https://developer.android.com/reference/android/provider/MediaStore.Audio.Albums), [MediaStore.Audio.Artists.Albums](https://developer.android.com/reference/android/provider/MediaStore.Audio.Artists.Albums) [MediaStore.Audio.Albums](https://developer.android.com/reference/android/provider/MediaStore.Audio.Albums) Contains artists for audio files [MediaStore.Audio.Artists.Albums](https://developer.android.com/reference/android/provider/MediaStore.Audio.Artists.Albums) Sub-directory of each artist containing all albums on which a song by the artist appears.   

*** ** * ** ***

Audio album metadata columns.

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.Audio.AlbumColumns#ALBUM` The album on which the audio file appears, if any. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.Audio.AlbumColumns#ALBUM_ART` *This constant was deprecated in API level 29. Apps may not have filesystem permissions to directly access this path. Instead of trying to open this path directly, apps should use `https://developer.android.com/reference/android/content/ContentResolver#loadThumbnail(android.net.Uri,%20android.util.Size,%20android.os.CancellationSignal)` to gain access.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.Audio.AlbumColumns#ALBUM_ID` The id for the album. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.Audio.AlbumColumns#ALBUM_KEY` *This constant was deprecated in API level 30. These keys are generated using `https://developer.android.com/reference/java/util/Locale#ROOT`, which means they don't reflect locale-specific sorting preferences. To apply locale-specific sorting preferences, use `https://developer.android.com/reference/android/content/ContentResolver#QUERY_ARG_SQL_SORT_ORDER` with `COLLATE LOCALIZED`, or `https://developer.android.com/reference/android/content/ContentResolver#QUERY_ARG_SORT_LOCALE`.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.Audio.AlbumColumns#ARTIST` The name of the artist whose songs appear on this album. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.Audio.AlbumColumns#ARTIST_ID` The ID of the artist whose songs appear on this album. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.Audio.AlbumColumns#ARTIST_KEY` *This constant was deprecated in API level 30. These keys are generated using `https://developer.android.com/reference/java/util/Locale#ROOT`, which means they don't reflect locale-specific sorting preferences. To apply locale-specific sorting preferences, use `https://developer.android.com/reference/android/content/ContentResolver#QUERY_ARG_SQL_SORT_ORDER` with `COLLATE LOCALIZED`, or `https://developer.android.com/reference/android/content/ContentResolver#QUERY_ARG_SORT_LOCALE`.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.Audio.AlbumColumns#FIRST_YEAR` The year in which the earliest songs on this album were released. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.Audio.AlbumColumns#LAST_YEAR` The year in which the latest songs on this album were released. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.Audio.AlbumColumns#NUMBER_OF_SONGS` The number of songs on this album. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/MediaStore.Audio.AlbumColumns#NUMBER_OF_SONGS_FOR_ARTIST` This column is available when getting album info via artist, and indicates the number of songs on the album by the given artist. |

## Constants

### ALBUM

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

```
public static final String ALBUM
```

The album on which the audio file appears, if any.   

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_ART

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

```
public static final String ALBUM_ART
```

<br />

**This constant was deprecated in API level 29.**   

Apps may not have filesystem permissions to directly access this path. Instead of trying to open this path directly, apps should use `https://developer.android.com/reference/android/content/ContentResolver#loadThumbnail(android.net.Uri,%20android.util.Size,%20android.os.CancellationSignal)` to gain access.

Cached album art.   

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: "album_art"

### ALBUM_ID

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

```
public static final String ALBUM_ID
```

The id for the album.   

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: "album_id"

### ALBUM_KEY

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

```
public static final String ALBUM_KEY
```

<br />

**This constant was deprecated in API level 30.**   

These keys are generated using `https://developer.android.com/reference/java/util/Locale#ROOT`, which means they don't reflect locale-specific sorting preferences. To apply locale-specific sorting preferences, use `https://developer.android.com/reference/android/content/ContentResolver#QUERY_ARG_SQL_SORT_ORDER` with `COLLATE LOCALIZED`, or `https://developer.android.com/reference/android/content/ContentResolver#QUERY_ARG_SORT_LOCALE`.

A non human readable key calculated from the ALBUM, used for searching, sorting and grouping.   

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 />

**See also:**

- `https://developer.android.com/reference/android/provider/MediaStore.Audio#keyFor(java.lang.String)`

Constant Value: "album_key"

### ARTIST

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

```
public static final String ARTIST
```

The name of the artist whose songs appear on this album.   

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"

### ARTIST_ID

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

```
public static final String ARTIST_ID
```

The ID of the artist whose songs appear on this album.   

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: "artist_id"

### ARTIST_KEY

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

```
public static final String ARTIST_KEY
```

<br />

**This constant was deprecated in API level 30.**   

These keys are generated using `https://developer.android.com/reference/java/util/Locale#ROOT`, which means they don't reflect locale-specific sorting preferences. To apply locale-specific sorting preferences, use `https://developer.android.com/reference/android/content/ContentResolver#QUERY_ARG_SQL_SORT_ORDER` with `COLLATE LOCALIZED`, or `https://developer.android.com/reference/android/content/ContentResolver#QUERY_ARG_SORT_LOCALE`.

A non human readable key calculated from the ARTIST, used for searching, sorting and grouping.   

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 />

**See also:**

- `https://developer.android.com/reference/android/provider/MediaStore.Audio#keyFor(java.lang.String)`

Constant Value: "artist_key"

### FIRST_YEAR

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

```
public static final String FIRST_YEAR
```

The year in which the earliest songs on this album were released. This will often be the same as `https://developer.android.com/reference/android/provider/MediaStore.Audio.AlbumColumns#LAST_YEAR`, but for compilation albums they might differ.   

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: "minyear"

### LAST_YEAR

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

```
public static final String LAST_YEAR
```

The year in which the latest songs on this album were released. This will often be the same as `https://developer.android.com/reference/android/provider/MediaStore.Audio.AlbumColumns#FIRST_YEAR`, but for compilation albums they might differ.   

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: "maxyear"

### NUMBER_OF_SONGS

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

```
public static final String NUMBER_OF_SONGS
```

The number of songs on this album.   

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: "numsongs"

### NUMBER_OF_SONGS_FOR_ARTIST

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

```
public static final String NUMBER_OF_SONGS_FOR_ARTIST
```

This column is available when getting album info via artist, and indicates the number of songs on the album by the given artist.   

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: "numsongs_by_artist"