Added in API level 1

AlbumColumns


interface AlbumColumns
android.provider.MediaStore.Audio.AlbumColumns

Audio album metadata columns.

Summary

Constants
static String

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

static String

Cached album art.

static String

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

static String

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 android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object.

static String

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

static String

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

static String

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 android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object.

static String

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

static String

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

static String

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

static String

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
static val ALBUM: String

The album on which the audio file appears, if any
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING , and are read-only and cannot be mutated.

Value: "album"

ALBUM_ART

Added in API level 1
Deprecated in API level 29
static val ALBUM_ART: String

Deprecated: 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 android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING .

Value: "album_art"

ALBUM_ID

Added in API level 1
static val ALBUM_ID: String

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

Value: "album_id"

ALBUM_KEY

Added in API level 1
Deprecated in API level 30
static val ALBUM_KEY: String

Deprecated: These keys are generated using java.util.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 android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING , and are read-only and cannot be mutated.

Value: "album_key"

ARTIST

Added in API level 1
static val ARTIST: String

The name of the artist whose songs appear on this album.
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING , and are read-only and cannot be mutated.

Value: "artist"

ARTIST_ID

Added in API level 29
static val ARTIST_ID: String

The ID of the artist whose songs appear on this album.
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

Value: "artist_id"

ARTIST_KEY

Added in API level 30
Deprecated in API level 30
static val ARTIST_KEY: String

Deprecated: These keys are generated using java.util.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 android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING , and are read-only and cannot be mutated.

Value: "artist_key"

FIRST_YEAR

Added in API level 1
static val FIRST_YEAR: String

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

Value: "minyear"

LAST_YEAR

Added in API level 1
static val LAST_YEAR: String

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

Value: "maxyear"

NUMBER_OF_SONGS

Added in API level 1
static val NUMBER_OF_SONGS: String

The number of songs on this album
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

Value: "numsongs"

NUMBER_OF_SONGS_FOR_ARTIST

Added in API level 3
static val NUMBER_OF_SONGS_FOR_ARTIST: String

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

Value: "numsongs_by_artist"