MediaStore.Audio.Playlists
  public
  static
  final
  
  class
  MediaStore.Audio.Playlists
  
    extends Object
  
  
  
  
  
      implements
      
        BaseColumns, 
      
        MediaStore.Audio.PlaylistsColumns
      
  
  
| java.lang.Object | |
| ↳ | android.provider.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.
  
Contains playlists for audio files
Summary
| Nested classes | |
|---|---|
| 
        
        
        
        
        class | MediaStore.Audio.Playlists.MembersSub-directory of each playlist containing all members. | 
| Constants | |
|---|---|
| String | CONTENT_TYPEThe MIME type for this table. | 
| String | DEFAULT_SORT_ORDERThe default sort order for this table | 
| String | ENTRY_CONTENT_TYPEThe MIME type for entries in this table. | 
| Inherited constants | 
|---|
| Fields | |
|---|---|
| 
    public
    static
    final
    Uri | EXTERNAL_CONTENT_URIThe content:// style URI for the "primary" external storage volume. | 
| 
    public
    static
    final
    Uri | INTERNAL_CONTENT_URIThe content:// style URI for the internal storage. | 
| Public constructors | |
|---|---|
| 
      Playlists()
       | |
| Public methods | |
|---|---|
| 
        
        
        static
        
        
        Uri | 
      getContentUri(String volumeName)
      Get the content:// style URI for the audio playlists table on the given volume. | 
| Inherited methods | |
|---|---|
Constants
CONTENT_TYPE
public static final String CONTENT_TYPE
The MIME type for this table.
Constant Value: "vnd.android.cursor.dir/playlist"
DEFAULT_SORT_ORDER
public static final String DEFAULT_SORT_ORDER
The default sort order for this table
Constant Value: "name"
ENTRY_CONTENT_TYPE
public static final String ENTRY_CONTENT_TYPE
The MIME type for entries in this table.
Constant Value: "vnd.android.cursor.item/playlist"
Fields
EXTERNAL_CONTENT_URI
public static final Uri EXTERNAL_CONTENT_URI
The content:// style URI for the "primary" external storage volume.
INTERNAL_CONTENT_URI
public static final Uri INTERNAL_CONTENT_URI
The content:// style URI for the internal storage.
Public constructors
Public methods
getContentUri
public static Uri getContentUri (String volumeName)
Get the content:// style URI for the audio playlists table on the given volume.
| Parameters | |
|---|---|
| volumeName | String: the name of the volume to get the URI for | 
| Returns | |
|---|---|
| Uri | the URI to the audio playlists table on the given volume | 
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-08-20 UTC.
