Accroding to a comment in the OpenIntents site
(http://www.openintents.org/en/node/112), this should work:

Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
Uri data = Uri.parse("file:///sdcard/song.mp3");
String type = "audio/mp3";
intent.setDataAndType(data, type);
startActivity(intent);

Haven't tested it though.


On Mon, Feb 8, 2010 at 7:21 AM, Nick Mitin <[email protected]> wrote:
> Is there any way to pass a file or a playlist to a standard Android
> Music Player? I guess almost all applications, for instance, i Music
> do it.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Reply via email to