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.AlbumColumnsAudio album metadata columns. | 
| 
        
        
        
        
        class | MediaStore.Audio.AlbumsContains artists for audio files | 
| 
        
        
        
        
        interface | MediaStore.Audio.ArtistColumnsAudio artist metadata columns. | 
| 
        
        
        
        
        class | MediaStore.Audio.ArtistsContains artists for audio files | 
| 
        
        
        
        
        interface | MediaStore.Audio.AudioColumnsAudio metadata columns. | 
| 
        
        
        
        
        class | MediaStore.Audio.GenresContains all genres for audio files | 
| 
        
        
        
        
        interface | MediaStore.Audio.GenresColumnsAudio genre metadata columns. | 
| 
        
        
        
        
        class | MediaStore.Audio.Media
 | 
| 
        
        
        
        
        class | MediaStore.Audio.PlaylistsThis 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.PlaylistsColumnsThis 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
              | 
| Inherited methods | |
|---|---|
Public constructors
Public methods
keyFor
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 benull. | 
| Returns | |
|---|---|
| String | Opaque token that should not be parsed or displayed to users.
 This value may be null. | 
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.
