# MediaStore.Audio.Genres

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Nested Classes](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#nestedclasses)\|[Constants](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#constants)\|[Inherited Constants](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#inhconstants)\|[Fields](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#lfields)\|[Ctors](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#pubctors)\|[Methods](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#inhmethods)  

# MediaStore.Audio.Genres

*** ** * ** ***

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

`
public
static
final

class
MediaStore.Audio.Genres
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


implements

`[BaseColumns](https://developer.android.com/reference/android/provider/BaseColumns)`,

`[MediaStore.Audio.GenresColumns](https://developer.android.com/reference/android/provider/MediaStore.Audio.GenresColumns)`


`

|---|------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.MediaStore.Audio.Genres |

<br />

*** ** * ** ***

Contains all genres for audio files

## Summary

|                                                                                    ### Nested classes                                                                                     ||
|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [MediaStore.Audio.Genres.Members](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres.Members) Sub-directory of each genre containing all members. |

|                                                                                                             ### Constants                                                                                                              ||
|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | [CONTENT_TYPE](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#CONTENT_TYPE) The MIME type for this table.                        |
| [String](https://developer.android.com/reference/java/lang/String) | [DEFAULT_SORT_ORDER](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#DEFAULT_SORT_ORDER) The default sort order for this table    |
| [String](https://developer.android.com/reference/java/lang/String) | [ENTRY_CONTENT_TYPE](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#ENTRY_CONTENT_TYPE) The MIME type for entries in this table. |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface[android.provider.BaseColumns](https://developer.android.com/reference/android/provider/BaseColumns) |--------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------| | [String](https://developer.android.com/reference/java/lang/String) | [_COUNT](https://developer.android.com/reference/android/provider/BaseColumns#_COUNT) The count of rows in a directory. | | [String](https://developer.android.com/reference/java/lang/String) | [_ID](https://developer.android.com/reference/android/provider/BaseColumns#_ID) The unique ID for a row.                |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| From interface[android.provider.MediaStore.Audio.GenresColumns](https://developer.android.com/reference/android/provider/MediaStore.Audio.GenresColumns) |--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://developer.android.com/reference/java/lang/String) | [NAME](https://developer.android.com/reference/android/provider/MediaStore.Audio.GenresColumns#NAME) The name of the genre This constant represents a column name that can be used with a[ContentProvider](https://developer.android.com/reference/android/content/ContentProvider)through a[ContentValues](https://developer.android.com/reference/android/content/ContentValues)or[Cursor](https://developer.android.com/reference/android/database/Cursor)object. | |

|                                                                                                                                        ### Fields                                                                                                                                        ||
|---------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [EXTERNAL_CONTENT_URI](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#EXTERNAL_CONTENT_URI) The content:// style URI for the "primary" external storage volume. |
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [INTERNAL_CONTENT_URI](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#INTERNAL_CONTENT_URI) The content:// style URI for the internal storage.                  |

|                                            ### Public constructors                                             ||
|-------------------------------------------------------------------------------------------------------------|---|
| ` `[Genres](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#Genres())`() ` |

|                                                                                                                                                                                                ### Public methods                                                                                                                                                                                                 ||
|--------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static `[Uri](https://developer.android.com/reference/android/net/Uri) | ` `[getContentUri](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#getContentUri(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` volumeName) ` Get the content:// style URI for the audio genres table on the given volume.                                   |
| ` static `[Uri](https://developer.android.com/reference/android/net/Uri) | ` `[getContentUriForAudioId](https://developer.android.com/reference/android/provider/MediaStore.Audio.Genres#getContentUriForAudioId(java.lang.String,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` volumeName, int audioId) ` Get the content:// style URI for querying the genres of an audio file. |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### CONTENT_TYPE

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

```
public static final String CONTENT_TYPE
```

The MIME type for this table.

<br />

Constant Value: "vnd.android.cursor.dir/genre"  

### DEFAULT_SORT_ORDER

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

```
public static final String DEFAULT_SORT_ORDER
```

The default sort order for this table

<br />

Constant Value: "name"  

### ENTRY_CONTENT_TYPE

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

```
public static final String ENTRY_CONTENT_TYPE
```

The MIME type for entries in this table.

<br />

Constant Value: "vnd.android.cursor.item/genre"

## Fields

### EXTERNAL_CONTENT_URI

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

```
public static final Uri EXTERNAL_CONTENT_URI
```

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

<br />

### INTERNAL_CONTENT_URI

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

```
public static final Uri INTERNAL_CONTENT_URI
```

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

<br />

## Public constructors

### Genres

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

```
public Genres ()
```

<br />

<br />

## Public methods

### getContentUri

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

```
public static Uri getContentUri (String volumeName)
```

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

<br />

|                                Parameters                                ||
|--------------|------------------------------------------------------------|
| `volumeName` | `String`: the name of the volume to get the URI for <br /> |

|                                                           Returns                                                            ||
|----------------------------------------------------------------|--------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri) | the URI to the audio genres table on the given volume <br /> |

### getContentUriForAudioId

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

```
public static Uri getContentUriForAudioId (String volumeName, 
                int audioId)
```

Get the content:// style URI for querying the genres of an audio file.

<br />

|                                      Parameters                                       ||
|--------------|-------------------------------------------------------------------------|
| `volumeName` | `String`: the name of the volume to get the URI for <br />              |
| `audioId`    | `int`: the ID of the audio file for which to retrieve the genres <br /> |

|                                                                              Returns                                                                               ||
|----------------------------------------------------------------|----------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri) | the URI to for querying the genres for the audio file with the given the volume and audioID <br /> |