Added in API level 1

MediaStore.Audio.AlbumColumns

public static interface MediaStore.Audio.AlbumColumns

android.provider.MediaStore.Audio.AlbumColumns


Audio album metadata columns.

Summary

Constants

String ALBUM

The album on which the audio file appears, if any
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object.

String 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 ContentResolver#loadThumbnail to gain access.

String ALBUM_ID

The id for the album
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object.

String ALBUM_KEY

This constant was deprecated in API level 30. These keys are generated using Locale.ROOT, which means they don't reflect locale-specific sorting preferences. To apply locale-specific sorting preferences, use ContentResolver#QUERY_ARG_SQL_SORT_ORDER with COLLATE LOCALIZED, or ContentResolver#QUERY_ARG_SORT_LOCALE.

String ARTIST

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

String ARTIST_ID

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

String ARTIST_KEY

This constant was deprecated in API level 30. These keys are generated using Locale.ROOT, which means they don't reflect locale-specific sorting preferences. To apply locale-specific sorting preferences, use ContentResolver#QUERY_ARG_SQL_SORT_ORDER with COLLATE LOCALIZED, or ContentResolver#QUERY_ARG_SORT_LOCALE.

String FIRST_YEAR

The year in which the earliest songs on this album were released.

String LAST_YEAR

The year in which the latest songs on this album were released.

String NUMBER_OF_SONGS

The number of songs on this album
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object.

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.

Constants

ALBUM

Added in API level 1
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 ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING , and are read-only and cannot be mutated.

Constant Value: "album"

ALBUM_ART

Added in API level 1
Deprecated in API level 29
public static final String 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 ContentResolver#loadThumbnail to gain access.

Cached album art.
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING .

Constant Value: "album_art"

ALBUM_ID

Added in API level 1
public static final String ALBUM_ID

The id for the album
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

Constant Value: "album_id"

ALBUM_KEY

Added in API level 1
Deprecated in API level 30
public static final String ALBUM_KEY

This constant was deprecated in API level 30.
These keys are generated using Locale.ROOT, which means they don't reflect locale-specific sorting preferences. To apply locale-specific sorting preferences, use ContentResolver#QUERY_ARG_SQL_SORT_ORDER with COLLATE LOCALIZED, or 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 ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING , and are read-only and cannot be mutated.

Constant Value: "album_key"

ARTIST

Added in API level 1
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 ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING , and are read-only and cannot be mutated.

Constant Value: "artist"

ARTIST_ID

Added in API level 29
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 ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

Constant Value: "artist_id"

ARTIST_KEY

Added in API level 30
Deprecated in API level 30
public static final String ARTIST_KEY

This constant was deprecated in API level 30.
These keys are generated using Locale.ROOT, which means they don't reflect locale-specific sorting preferences. To apply locale-specific sorting preferences, use ContentResolver#QUERY_ARG_SQL_SORT_ORDER with COLLATE LOCALIZED, or 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 ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING , and are read-only and cannot be mutated.

Constant Value: "artist_key"

FIRST_YEAR

Added in API level 1
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 LAST_YEAR, but for compilation albums they might differ.
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

Constant Value: "minyear"

LAST_YEAR

Added in API level 1
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 FIRST_YEAR, but for compilation albums they might differ.
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

Constant Value: "maxyear"

NUMBER_OF_SONGS

Added in API level 1
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 ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

Constant Value: "numsongs"

NUMBER_OF_SONGS_FOR_ARTIST

Added in API level 3
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 ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

Constant Value: "numsongs_by_artist"