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
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_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.

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 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
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object.

Inherited constants

Constants

ALBUM_ID

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

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_ID

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

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

BOOKMARK

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

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

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

Added in API level 30
Deprecated in API level 30
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.

Constant Value: "genre_key"

IS_ALARM

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

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

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

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

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

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

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

Added in API level 1
Deprecated in API level 30
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.

Constant Value: "title_key"

TITLE_RESOURCE_URI

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

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

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