Added in API level 1

AudioColumns


interface AudioColumns : MediaStore.MediaColumns
android.provider.MediaStore.Audio.AudioColumns

Audio metadata columns.

Summary

Constants
static String

The id of the album the audio file is from, 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

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 id of the artist who created the audio file, 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

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 number of bits used to represent each audio sample, if available.

static String

The position within the audio item at which playback should be resumed.

static String

The genre of the audio file, if any.

static String

The id of the genre the audio file is from, 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

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

static String

Non-zero if the audio file may be an alarm
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

Non-zero if the audio file is an audiobook
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

Non-zero if the audio file is music
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

Non-zero if the audio file may be a notification sound
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

Non-zero if the audio file is a podcast
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

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

static String

Non-zero if the audio file may be a ringtone
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 sample rate in Hz, if available.

static String

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

static String

The resource URI of a localized title, if any.

static String

The track number of this song on the album, if any.

static String

The year the audio file was recorded, 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.

Inherited constants

Constants

ALBUM_ID

Added in API level 1
static val ALBUM_ID: String

The id of the album the audio file is from, 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_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_ID

Added in API level 1
static val ARTIST_ID: String

The id of the artist who created the audio file, 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_INTEGER , and are read-only and cannot be mutated.

Value: "artist_id"

ARTIST_KEY

Added in API level 1
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"

BITS_PER_SAMPLE

static val BITS_PER_SAMPLE: String

The number of bits used to represent each audio sample, if available.
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: "bits_per_sample"

BOOKMARK

Added in API level 8
static val BOOKMARK: String

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

Value: "bookmark"

GENRE

Added in API level 30
static val GENRE: String

The genre of the audio file, 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: "genre"

GENRE_ID

Added in API level 30
static val GENRE_ID: String

The id of the genre the audio file is from, 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_INTEGER , and are read-only and cannot be mutated.

Value: "genre_id"

GENRE_KEY

Added in API level 30
Deprecated in API level 30
static val GENRE_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 GENRE, 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: "genre_key"

IS_ALARM

Added in API level 1
static val IS_ALARM: String

Non-zero if the audio file may be an alarm
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: "is_alarm"

IS_AUDIOBOOK

Added in API level 29
static val IS_AUDIOBOOK: String

Non-zero if the audio file is an audiobook
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: "is_audiobook"

IS_MUSIC

Added in API level 1
static val IS_MUSIC: String

Non-zero if the audio file is music
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: "is_music"

IS_NOTIFICATION

Added in API level 1
static val IS_NOTIFICATION: String

Non-zero if the audio file may be a notification sound
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: "is_notification"

IS_PODCAST

Added in API level 8
static val IS_PODCAST: String

Non-zero if the audio file is a podcast
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: "is_podcast"

IS_RECORDING

Added in API level 31
static val IS_RECORDING: String

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

IS_RINGTONE

Added in API level 1
static val IS_RINGTONE: String

Non-zero if the audio file may be a ringtone
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: "is_ringtone"

SAMPLERATE

static val SAMPLERATE: String

The sample rate in Hz, if available.
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: "samplerate"

TITLE_KEY

Added in API level 1
Deprecated in API level 30
static val TITLE_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 TITLE, 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: "title_key"

TITLE_RESOURCE_URI

Added in API level 30
static val TITLE_RESOURCE_URI: String

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

TRACK

Added in API level 1
static val TRACK: String

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

YEAR

Added in API level 1
static val YEAR: String

The year the audio file was recorded, 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_INTEGER , and are read-only and cannot be mutated.

Value: "year"