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. Proposal to Market Place

As a developer I find it difficult to understanding ratings sometime.
1 to 5 is a good scale. But here is the problem with scale you can
have people give you a five for the sake of giving you a five or a
person give you one just because they want to be jerks. I would like
to propose a change to the market rating system where a rate of 1 or 5
must include comments. If I am receiving a one due to technical
problems or display problems I would want to know and not search my
code for hours trying to find what may be the reason for the one rate.
Also with the 5 I would like to know what is working so very good on
my app that I could continue to use it in future developments. This
way as we develop more apps we can get a better sense as what the
rating really mean and the ppl who are rating the apps really think
about them. 1 and 5 the extremes should require feedback as the 2 to 4
are mostly middle ground and could be left alone for the average jerk
to rate.


2. I'm using onSensorChanged(). What should I specify in <uses-feature> ?

If nothing else, try none, either, then both, and see which way makes it

TreKing <> - Chicago
transit tracking app for Android-powered devices


3. Building/test a new hal implementation

4. How to make glow effect around a bitmap?

5. seekto is not displaying the video frame on mediaplayer, any help?

6. Help: Desireku Error

7. SGS - Not Enough Memory