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
|
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
|
String |
ALBUM_ID
The id for the album
|
String |
ALBUM_KEY
This constant was deprecated
in API level 30.
These keys are generated using
|
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
|
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
|
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
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
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
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
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.
See also:
Constant Value: "album_key"
ARTIST
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
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
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.
See also:
Constant Value: "artist_key"
FIRST_YEAR
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
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
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
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"