# MediaStore.Audio.ArtistColumns

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# ArtistColumns

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/provider/MediaStore.Audio.ArtistColumns "View this page in Java")  

```
interface ArtistColumns
```

|----------------------------------------------------------------------------------------------------------------------------------------------------|
| [android.provider.MediaStore.Audio.ArtistColumns](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.ArtistColumns#) |

|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [MediaStore.Audio.Artists](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Artists) |----------------------------------------------------------------------------------------------------------------------|----------------------------------| | [MediaStore.Audio.Artists](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Artists) | Contains artists for audio files | |

Audio artist metadata columns.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                           Constants                                                                                                                                                                                                                                                                                                                                                                           ||
|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ARTIST](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.ArtistColumns#ARTIST:kotlin.String) The artist who created the audio file, if any This constant represents a column name that can be used with a[android.content.ContentProvider](https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#)through a[android.content.ContentValues](https://developer.android.com/reference/kotlin/android/content/ContentValues.html#)or[android.database.Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)object.                                                         |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ARTIST_KEY](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.ArtistColumns#ARTIST_KEY:kotlin.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](https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#)through a[android.content.ContentValues](https://developer.android.com/reference/kotlin/android/content/ContentValues.html#)or[android.database.Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)object. |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [NUMBER_OF_ALBUMS](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.ArtistColumns#NUMBER_OF_ALBUMS:kotlin.String) The number of albums in the database for this artist This constant represents a column name that can be used with a[android.content.ContentProvider](https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#)through a[android.content.ContentValues](https://developer.android.com/reference/kotlin/android/content/ContentValues.html#)or[android.database.Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)object.                              |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [NUMBER_OF_TRACKS](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.ArtistColumns#NUMBER_OF_TRACKS:kotlin.String) The number of albums in the database for this artist This constant represents a column name that can be used with a[android.content.ContentProvider](https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#)through a[android.content.ContentValues](https://developer.android.com/reference/kotlin/android/content/ContentValues.html#)or[android.database.Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)object.                              |

## Constants

### ARTIST

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ARTIST: String
```

The artist who created the audio file, if any  
This constant represents a column name that can be used with a[android.content.ContentProvider](https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#)through a[android.content.ContentValues](https://developer.android.com/reference/kotlin/android/content/ContentValues.html#)or[android.database.Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)object. The values stored in this column are[Cursor#FIELD_TYPE_STRING](https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int), and are read-only and cannot be mutated.  

    Value: "artist"

### ARTIST_KEY

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ARTIST_KEY: String
```

**Deprecated:** *These keys are generated using[java.util.Locale#ROOT](https://developer.android.com/reference/kotlin/java/util/Locale.html#ROOT:java.util.Locale), which means they don't reflect locale-specific sorting preferences. To apply locale-specific sorting preferences, use[ContentResolver.QUERY_ARG_SQL_SORT_ORDER](https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#QUERY_ARG_SQL_SORT_ORDER:kotlin.String)with`COLLATE LOCALIZED`, or[ContentResolver.QUERY_ARG_SORT_LOCALE](https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#QUERY_ARG_SORT_LOCALE:kotlin.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](https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#)through a[android.content.ContentValues](https://developer.android.com/reference/kotlin/android/content/ContentValues.html#)or[android.database.Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)object. The values stored in this column are[Cursor#FIELD_TYPE_STRING](https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int), and are read-only and cannot be mutated.  

    Value: "artist_key"

**See Also**

- [android.provider.MediaStore.Audio#keyFor(String)](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio#keyFor(kotlin.String))  

### NUMBER_OF_ALBUMS

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val NUMBER_OF_ALBUMS: String
```

The number of albums in the database for this artist  
This constant represents a column name that can be used with a[android.content.ContentProvider](https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#)through a[android.content.ContentValues](https://developer.android.com/reference/kotlin/android/content/ContentValues.html#)or[android.database.Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)object. The values stored in this column are[Cursor#FIELD_TYPE_INTEGER](https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int), and are read-only and cannot be mutated.  

    Value: "number_of_albums"

### NUMBER_OF_TRACKS

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val NUMBER_OF_TRACKS: String
```

The number of albums in the database for this artist  
This constant represents a column name that can be used with a[android.content.ContentProvider](https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#)through a[android.content.ContentValues](https://developer.android.com/reference/kotlin/android/content/ContentValues.html#)or[android.database.Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)object. The values stored in this column are[Cursor#FIELD_TYPE_INTEGER](https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int), and are read-only and cannot be mutated.  

    Value: "number_of_tracks"