MediaStore.Audio


public static final class MediaStore.Audio
extends Object

java.lang.Object
   ↳ android.provider.MediaStore.Audio


Collection of all media with MIME type of audio/*.

Summary

Nested classes

interface MediaStore.Audio.AlbumColumns

Audio album metadata columns. 

class MediaStore.Audio.Albums

Contains artists for audio files 

interface MediaStore.Audio.ArtistColumns

Audio artist metadata columns. 

class MediaStore.Audio.Artists

Contains artists for audio files 

interface MediaStore.Audio.AudioColumns

Audio metadata columns. 

class MediaStore.Audio.Genres

Contains all genres for audio files 

interface MediaStore.Audio.GenresColumns

Audio genre metadata columns. 

class MediaStore.Audio.Media

 

class MediaStore.Audio.Playlists

This class was deprecated in API level 31. Android playlists are now deprecated. We will keep the current functionality for compatibility resons, but we will no longer take feature request. We do not advise adding new usages of Android Playlists. M3U files can be used as an alternative. 

interface MediaStore.Audio.PlaylistsColumns

This interface was deprecated in API level 31. Android playlists are now deprecated. We will keep the current functionality for compatibility reasons, but we will no longer take feature request. We do not advise adding new usages of Android Playlists. M3U files can be used as an alternative. 

class MediaStore.Audio.Radio

 

Public constructors

Audio()

Public methods

static String keyFor(String name)

This method 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.

Inherited methods

Public constructors

Audio

Added in API level 1
public Audio ()

Public methods

keyFor

Added in API level 1
Deprecated in API level 30
public static String keyFor (String name)

This method 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.

Converts a user-visible string into a "key" that can be used for grouping, sorting, and searching.

Parameters
name String: This value may be null.

Returns
String Opaque token that should not be parsed or displayed to users. This value may be null.