Monday, March 19, 2012

[android-developers] Re: Querying Google Play Music database

Aman - I spent some time last week trying to find where the Music app
keeps its playlists, and have failed.

The whole thing puzzles me a bit. If the Google apps aren't going to
use these documented APIs, what use are the APIs to developers ?

At the very least, it would be helpful if the API documentation
mentioned the fact.

On Mar 12, 2:36 pm, Aman <aman...@gmail.com> wrote:
> I am trying to query for the playlists created by "Google Play Music" app
> but haven't been able to do so. I created a playlist using locally stored
> content. I used the following code to query:
>
> Cursor c = managedQuery(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI,
>                                        new String[]
> {MediaStore.Audio.Playlists._ID,
>
> MediaStore.Audio.Playlists.NAME
>                                                     }, null, null, null);
>
> This works fine for Winamp but not for Google Play Music. In fact, Winamp
> doesn't display the playlists created with Google Play Music. However,
> Google Play Music displays the playlists created with Winamp. My guess is
> that Google Play Music is using its own database to store the playlists
> where as other players use Content Provider with uri
> MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI to store their playlists.
> Is there a way to get playlists created with Google Play Music?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment