MediaStore.Audio.AudioColumns
public
static
interface
MediaStore.Audio.AudioColumns
implements
MediaStore.MediaColumns
android.provider.MediaStore.Audio.AudioColumns |
Audio metadata columns.
Summary
Constants | |
---|---|
String |
ALBUM_ID
The id of the album the audio file is from, if any
|
String |
ALBUM_KEY
This constant was deprecated
in API level 30.
These keys are generated using
|
String |
ARTIST_ID
The id of the artist who created the audio file, if any
|
String |
ARTIST_KEY
This constant was deprecated
in API level 30.
These keys are generated using
|
String |
BOOKMARK
The position within the audio item at which playback should be resumed. |
String |
GENRE
The genre of the audio file, if any. |
String |
GENRE_ID
The id of the genre the audio file is from, if any
|
String |
GENRE_KEY
This constant was deprecated
in API level 30.
These keys are generated using
|
String |
IS_ALARM
Non-zero if the audio file may be an alarm
|
String |
IS_AUDIOBOOK
Non-zero if the audio file is an audiobook
|
String |
IS_MUSIC
Non-zero if the audio file is music
|
String |
IS_NOTIFICATION
Non-zero if the audio file may be a notification sound
|
String |
IS_PODCAST
Non-zero if the audio file is a podcast
|
String |
IS_RECORDING
Non-zero if the audio file is a voice recording recorded
by voice recorder apps
|
String |
IS_RINGTONE
Non-zero if the audio file may be a ringtone
|
String |
TITLE_KEY
This constant was deprecated
in API level 30.
These keys are generated using
|
String |
TITLE_RESOURCE_URI
The resource URI of a localized title, if any. |
String |
TRACK
The track number of this song on the album, if any. |
String |
YEAR
The year the audio file was recorded, if any
|
Inherited constants |
---|
Constants
ALBUM_ID
public static final String ALBUM_ID
The id of the album the audio file is from, 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_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_ID
public static final String ARTIST_ID
The id of the artist who created the audio file, 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_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"
BOOKMARK
public static final String BOOKMARK
The position within the audio item at which playback should be
resumed.
Value is a non-negative duration in milliseconds.
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
.
Constant Value: "bookmark"
GENRE
public static final String GENRE
The genre of the audio file, 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: "genre"
GENRE_ID
public static final String GENRE_ID
The id of the genre the audio file is from, 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_INTEGER
, and are read-only and cannot be mutated.
Constant Value: "genre_id"
GENRE_KEY
public static final String GENRE_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 GENRE, 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: "genre_key"
IS_ALARM
public static final String IS_ALARM
Non-zero if the audio file may be an alarm
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: "is_alarm"
IS_AUDIOBOOK
public static final String IS_AUDIOBOOK
Non-zero if the audio file is an audiobook
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: "is_audiobook"
IS_MUSIC
public static final String IS_MUSIC
Non-zero if the audio file is music
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: "is_music"
IS_NOTIFICATION
public static final String IS_NOTIFICATION
Non-zero if the audio file may be a notification sound
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: "is_notification"
IS_PODCAST
public static final String IS_PODCAST
Non-zero if the audio file is a podcast
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: "is_podcast"
IS_RECORDING
public static final String IS_RECORDING
Non-zero if the audio file is a voice recording recorded
by voice recorder apps
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: "is_recording"
IS_RINGTONE
public static final String IS_RINGTONE
Non-zero if the audio file may be a ringtone
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: "is_ringtone"
TITLE_KEY
public static final String TITLE_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 TITLE, 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: "title_key"
TITLE_RESOURCE_URI
public static final String TITLE_RESOURCE_URI
The resource URI of a localized title, if any.
Conforms to this pattern:
- Scheme:
ContentResolver#SCHEME_ANDROID_RESOURCE
- Authority: Package Name of ringtone title provider
- First Path Segment: Type of resource (must be "string")
- Second Path Segment: Resource ID of title
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: "title_resource_uri"
TRACK
public static final String TRACK
The track number of this song on the album, if any.
This number encodes both the track number and the
disc number. For multi-disc sets, this number will
be 1xxx for tracks on the first disc, 2xxx for tracks
on the second disc, etc.
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: "track"
YEAR
public static final String YEAR
The year the audio file was recorded, 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_INTEGER
, and are read-only and cannot be mutated.
Constant Value: "year"