Stay organized with collections
Save and categorize content based on your preferences.
public
static
interface
MediaStore.Audio.ArtistColumns
android.provider.MediaStore.Audio.ArtistColumns
|
Known indirect subclasses
|
Audio artist metadata columns.
Summary
Constants
ARTIST
public static final String ARTIST
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_STRING
, and are read-only and cannot be mutated.
Constant Value:
"artist"
NUMBER_OF_ALBUMS
public static final String NUMBER_OF_ALBUMS
The number of albums in the database for this 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:
"number_of_albums"
NUMBER_OF_TRACKS
public static final String NUMBER_OF_TRACKS
The number of albums in the database for this 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:
"number_of_tracks"
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MediaStore.Audio.ArtistColumns\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \n\nMediaStore.Audio.ArtistColumns\n==============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/provider/MediaStore.Audio.ArtistColumns \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nMediaStore.Audio.ArtistColumns\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------------|\n| android.provider.MediaStore.Audio.ArtistColumns |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [MediaStore.Audio.Artists](/reference/android/provider/MediaStore.Audio.Artists) |----------------------------------------------------------------------------------|----------------------------------| | [MediaStore.Audio.Artists](/reference/android/provider/MediaStore.Audio.Artists) | Contains artists for audio files | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAudio artist metadata columns.\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](/reference/java/lang/String) | [ARTIST](/reference/android/provider/MediaStore.Audio.ArtistColumns#ARTIST) The artist who created the audio file, if any \u003cbr /\u003e This constant represents a column name that can be used with a [ContentProvider](/reference/android/content/ContentProvider) through a [ContentValues](/reference/android/content/ContentValues) or [Cursor](/reference/android/database/Cursor) object. |\n| [String](/reference/java/lang/String) | [ARTIST_KEY](/reference/android/provider/MediaStore.Audio.ArtistColumns#ARTIST_KEY) *This constant was deprecated in API level 30. These keys are generated using [Locale.ROOT](/reference/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](/reference/android/content/ContentResolver#QUERY_ARG_SQL_SORT_ORDER) with `COLLATE LOCALIZED`, or [ContentResolver.QUERY_ARG_SORT_LOCALE](/reference/android/content/ContentResolver#QUERY_ARG_SORT_LOCALE).* |\n| [String](/reference/java/lang/String) | [NUMBER_OF_ALBUMS](/reference/android/provider/MediaStore.Audio.ArtistColumns#NUMBER_OF_ALBUMS) The number of albums in the database for this artist \u003cbr /\u003e This constant represents a column name that can be used with a [ContentProvider](/reference/android/content/ContentProvider) through a [ContentValues](/reference/android/content/ContentValues) or [Cursor](/reference/android/database/Cursor) object. |\n| [String](/reference/java/lang/String) | [NUMBER_OF_TRACKS](/reference/android/provider/MediaStore.Audio.ArtistColumns#NUMBER_OF_TRACKS) The number of albums in the database for this artist \u003cbr /\u003e This constant represents a column name that can be used with a [ContentProvider](/reference/android/content/ContentProvider) through a [ContentValues](/reference/android/content/ContentValues) or [Cursor](/reference/android/database/Cursor) object. |\n\nConstants\n---------\n\n### ARTIST\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String ARTIST\n```\n\nThe artist who created the audio file, if any\n\n\u003cbr /\u003e\n\n\nThis constant represents a column name that can be used with a [ContentProvider](/reference/android/content/ContentProvider) through a [ContentValues](/reference/android/content/ContentValues) or [Cursor](/reference/android/database/Cursor) object. The values stored in this column are [Cursor#FIELD_TYPE_STRING](/reference/android/database/Cursor#FIELD_TYPE_STRING) , and are read-only and cannot be mutated.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"artist\"\n\n\n### ARTIST_KEY\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n30](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String ARTIST_KEY\n```\n\n\n**This constant was deprecated\nin API level 30.** \n\nThese keys are generated using\n[Locale.ROOT](/reference/java/util/Locale#ROOT), which means they don't\nreflect locale-specific sorting preferences. To apply\nlocale-specific sorting preferences, use\n[ContentResolver.QUERY_ARG_SQL_SORT_ORDER](/reference/android/content/ContentResolver#QUERY_ARG_SQL_SORT_ORDER) with\n`COLLATE LOCALIZED`, or\n[ContentResolver.QUERY_ARG_SORT_LOCALE](/reference/android/content/ContentResolver#QUERY_ARG_SORT_LOCALE).\n\nA non human readable key calculated from the ARTIST, used for\nsearching, sorting and grouping\n\n\u003cbr /\u003e\n\n\nThis constant represents a column name that can be used with a [ContentProvider](/reference/android/content/ContentProvider) through a [ContentValues](/reference/android/content/ContentValues) or [Cursor](/reference/android/database/Cursor) object. The values stored in this column are [Cursor#FIELD_TYPE_STRING](/reference/android/database/Cursor#FIELD_TYPE_STRING) , and are read-only and cannot be mutated.\n\n\u003cbr /\u003e\n\n**See also:**\n\n- [MediaStore.Audio.keyFor(String)](/reference/android/provider/MediaStore.Audio#keyFor(java.lang.String))\n\nConstant Value:\n\n\"artist_key\"\n\n\n### NUMBER_OF_ALBUMS\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String NUMBER_OF_ALBUMS\n```\n\nThe number of albums in the database for this artist\n\n\u003cbr /\u003e\n\n\nThis constant represents a column name that can be used with a [ContentProvider](/reference/android/content/ContentProvider) through a [ContentValues](/reference/android/content/ContentValues) or [Cursor](/reference/android/database/Cursor) object. The values stored in this column are [Cursor#FIELD_TYPE_INTEGER](/reference/android/database/Cursor#FIELD_TYPE_INTEGER) , and are read-only and cannot be mutated.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"number_of_albums\"\n\n\n### NUMBER_OF_TRACKS\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String NUMBER_OF_TRACKS\n```\n\nThe number of albums in the database for this artist\n\n\u003cbr /\u003e\n\n\nThis constant represents a column name that can be used with a [ContentProvider](/reference/android/content/ContentProvider) through a [ContentValues](/reference/android/content/ContentValues) or [Cursor](/reference/android/database/Cursor) object. The values stored in this column are [Cursor#FIELD_TYPE_INTEGER](/reference/android/database/Cursor#FIELD_TYPE_INTEGER) , and are read-only and cannot be mutated.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"number_of_tracks\""]]