# MediaStore.Audio.Artists

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

# Artists

*** ** * ** ***

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

```
class Artists : BaseColumns, MediaStore.Audio.ArtistColumns
```

|---|----------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                         ||
| ↳ | [android.provider.MediaStore.Audio.Artists](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Artists#) |

Contains artists for audio files

## Summary

|                                                                                             Nested classes                                                                                             ||
|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   | [Albums](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Artists.Albums) Sub-directory of each artist containing all albums on which a song by the artist appears. |

|                                                                                                                                    Constants                                                                                                                                     ||
|----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_TYPE](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Artists#CONTENT_TYPE:kotlin.String) The MIME type for this table.                        |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DEFAULT_SORT_ORDER](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Artists#DEFAULT_SORT_ORDER:kotlin.String) The default sort order for this table    |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ENTRY_CONTENT_TYPE](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Artists#ENTRY_CONTENT_TYPE:kotlin.String) The MIME type for entries in this table. |

| Inherited constants ||
|---|---|
| From class[ArtistColumns](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.ArtistColumns) |----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [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) <br /> 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. <br />                                                         | | [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) <br /> 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. <br /> | | [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) <br /> 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. <br />                            | | [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) <br /> 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. <br />                            | ||
| From class[BaseColumns](https://developer.android.com/reference/kotlin/android/provider/BaseColumns) |----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_COUNT](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_COUNT:kotlin.String) <br /> The count of rows in a directory. Type: INTEGER <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) <br /> The unique ID for a row. Type: INTEGER (long) <br />         | ||

|                                                     Public constructors                                                     ||
|--------------------------------------------------------------------------------------------------------------------------|---|
| [Artists](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Artists#Artists())`()` <br /> |

|                                                                                                                                                                                             Public methods                                                                                                                                                                                              ||
|------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [getContentUri](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Artists#getContentUri(kotlin.String))`(`volumeName:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Get the content:// style URI for the artists table on the given volume. |

|                                                                                                                                                  Properties                                                                                                                                                   ||
|------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [EXTERNAL_CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Artists#EXTERNAL_CONTENT_URI:android.net.Uri) The content:// style URI for the "primary" external storage volume. |
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [INTERNAL_CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Artists#INTERNAL_CONTENT_URI:android.net.Uri) The content:// style URI for the internal storage.                  |

## Constants

### CONTENT_TYPE

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

```
static val CONTENT_TYPE: String
```

The MIME type for this table.  

    Value: "vnd.android.cursor.dir/artists"

### DEFAULT_SORT_ORDER

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

```
static val DEFAULT_SORT_ORDER: String
```

The default sort order for this table  

    Value: "artist_key"

### ENTRY_CONTENT_TYPE

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

```
static val ENTRY_CONTENT_TYPE: String
```

The MIME type for entries in this table.  

    Value: "vnd.android.cursor.item/artist"

## Public constructors

### Artists

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

```
Artists()
```

## Public methods

### getContentUri

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

```
static fun getContentUri(volumeName: String!): Uri!
```

Get the content:// style URI for the artists table on the given volume.

|                                                                Parameters                                                                 ||
|--------------|-----------------------------------------------------------------------------------------------------------------------------|
| `volumeName` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:the name of the volume to get the URI for |

|                                                                Return                                                                ||
|------------------------------------------------------------------------------|--------------------------------------------------------|
| [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | the URI to the audio artists table on the given volume |

## Properties

### EXTERNAL_CONTENT_URI

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

```
static val EXTERNAL_CONTENT_URI: Uri!
```

The content:// style URI for the "primary" external storage volume.  

### INTERNAL_CONTENT_URI

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

```
static val INTERNAL_CONTENT_URI: Uri!
```

The content:// style URI for the internal storage.