launching m3u playlist with intent

by Seb » Sun, 16 Aug 2009 21:11:31 GMT

Sponsored Links

Is there a way to launch a playlist whith intent?

I can retrieve the path of the m3u playlist with:
Cursor cursor = context.getContentResolver().query
(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, null, null, null,

But, I can't launch this m3u file neither with Intent nor with

Is there a way to do this?

Thanks in advance


launching m3u playlist with intent

by Marco Nelissen » Mon, 17 Aug 2009 03:23:56 GMT




Sponsored Links

launching m3u playlist with intent

by Marco Nelissen » Mon, 17 Aug 2009 03:30:16 GMT

 Well, OK, that's not entirely true. While you can't play an arbitrary
m3u file, you can play playlists that are in the database (which may
have come from m3u files originally, in which case there path is in
the _data column).
To see how, you can look at what happens when you put a shortcut to a
playlist on the home screen and then launch it.


launching m3u playlist with intent

by Seb » Mon, 17 Aug 2009 21:36:13 GMT

 Hi Marco,

Thank you very much for the response. You give me the key to find the

I had to study the code of PlaylistBrowserActivity to find the

I give it here if someone else search the solution:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setComponent(new ComponentName
intent.putExtra("oneshot", false);
intent.putExtra("playlist", playlistid);

and to retrieve the playlistid:
Cursor cursor = getContentResolver().query
(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, null, null, null,
if (cursor != null) {
 if (cursor.moveToFirst()) {
  do {
     playlistid = cursor.getString(cursor.getColumnIndex
     } while (cursor.moveToNext());


launching m3u playlist with intent

by » Fri, 11 Sep 2009 16:12:32 GMT

 Awesome. I love you! :)
This was just what I was looking for.


Other Threads

1. did someone implement a ScrollView with horizontal scroll support?

The code in setScrollXY is not called anywhere in the class, and was
old test code to get around the fact that some fields/methods are not
available in sub-classes in different packages.

It can be and should have been removed, but then again, who has time
for that?



2. Problems with support from T-mobile/General Question


I am having an issue that looks to be a bug on my Tmobile G1,  but T-
mobile isn't helping me resolve or expedite it.  The bug details are
listed here:

T-mobile claims that I have the responsibility to troubleshoot Android
and file bugs for a phone they "support" and run on their network.
Humorously enough I went to the Better Business Bureau and so they
finally got back to me after 5 separate calls to support.  They claim
2 things that I am wondering about...

1. Do providers have responsiblity for interfacing with you the
Android team in submitting bugs on behalf of their supported
consumers?  Or does the consumer?

2. Do you have a team within the Android group at Google that works
with the provider networks?

BTW, the particular "senior" customer service manager I spoke with
said that the issue related to the fact that Android was open source.
Being a user, supporter and advocate of FOSS I had to stop and laugh.
xD  I asked him what that had to do with it and I got no response.


3. Validating User Input

4. DoubleTwist

5. Does android support Google Gear?

6. new version of app - is the user notified?

7. How to set the video display to the horizon or vertical of display panel in video playing