MediaStore.Audio.Playlists.Members

public static final class MediaStore.Audio.Playlists.Members
extends Object implements MediaStore.Audio.AudioColumns

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


Sub-directory of each playlist containing all members.

Summary

Constants

String AUDIO_ID

The ID of the audio file

Type: INTEGER (long)

String CONTENT_DIRECTORY

A subdirectory of each playlist containing all member audio files.

String DEFAULT_SORT_ORDER

The default sort order for this table

String PLAYLIST_ID

The ID of the playlist

Type: INTEGER (long)

String PLAY_ORDER

The order of the songs in the playlist

Type: INTEGER (long)>

String _ID

The ID within the playlist.

Inherited constants

Public constructors

MediaStore.Audio.Playlists.Members()

Public methods

static Uri getContentUri(String volumeName, long playlistId)
static boolean moveItem(ContentResolver res, long playlistId, int from, int to)

Convenience method to move a playlist item to a new location

Inherited methods

Constants

AUDIO_ID

added in API level 1
public static final String AUDIO_ID

The ID of the audio file

Type: INTEGER (long)

Constant Value: "audio_id"

CONTENT_DIRECTORY

added in API level 1
public static final String CONTENT_DIRECTORY

A subdirectory of each playlist containing all member audio files.

Constant Value: "members"

DEFAULT_SORT_ORDER

added in API level 1
public static final String DEFAULT_SORT_ORDER

The default sort order for this table

Constant Value: "play_order"

PLAYLIST_ID

added in API level 1
public static final String PLAYLIST_ID

The ID of the playlist

Type: INTEGER (long)

Constant Value: "playlist_id"

PLAY_ORDER

added in API level 1
public static final String PLAY_ORDER

The order of the songs in the playlist

Type: INTEGER (long)>

Constant Value: "play_order"

_ID

added in API level 1
public static final String _ID

The ID within the playlist.

Constant Value: "_id"

Public constructors

MediaStore.Audio.Playlists.Members

added in API level 1
public MediaStore.Audio.Playlists.Members ()

Public methods

getContentUri

added in API level 1
public static Uri getContentUri (String volumeName, 
                long playlistId)

Parameters
volumeName String

playlistId long

Returns
Uri

moveItem

added in API level 8
public static boolean moveItem (ContentResolver res, 
                long playlistId, 
                int from, 
                int to)

Convenience method to move a playlist item to a new location

Parameters
res ContentResolver: The content resolver to use

playlistId long: The numeric id of the playlist

from int: The position of the item to move

to int: The position to move the item to

Returns
boolean true on success