Most visited

Recently visited

Added in API level 1

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

From interface android.provider.MediaStore.Audio.AudioColumns
From interface android.provider.MediaStore.MediaColumns
From interface android.provider.BaseColumns

Public constructors

MediaStore.Audio.Playlists.Members()

Public methods

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

Convenience method to move a playlist item to a new location

Inherited methods

From class java.lang.Object

Constants

AUDIO_ID

Added in API level 1
String AUDIO_ID

The ID of the audio file

Type: INTEGER (long)

Constant Value: "audio_id"

CONTENT_DIRECTORY

Added in API level 1
String CONTENT_DIRECTORY

A subdirectory of each playlist containing all member audio files.

Constant Value: "members"

DEFAULT_SORT_ORDER

Added in API level 1
String DEFAULT_SORT_ORDER

The default sort order for this table

Constant Value: "play_order"

PLAYLIST_ID

Added in API level 1
String PLAYLIST_ID

The ID of the playlist

Type: INTEGER (long)

Constant Value: "playlist_id"

PLAY_ORDER

Added in API level 1
String PLAY_ORDER

The order of the songs in the playlist

Type: INTEGER (long)>

Constant Value: "play_order"

_ID

Added in API level 1
String _ID

The ID within the playlist.

Constant Value: "_id"

Public constructors

MediaStore.Audio.Playlists.Members

Added in API level 1
MediaStore.Audio.Playlists.Members ()

Public methods

getContentUri

Added in API level 1
Uri getContentUri (String volumeName, 
                long playlistId)

Parameters
volumeName String
playlistId long
Returns
Uri

moveItem

Added in API level 8
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

Hooray!