Hi,

I'm trying to make it so that the default music player application on
the cell phone will launch and play an mp3 at a web address.

If I do this:

                Intent intent = new Intent(Intent.ACTION_VIEW);
                Uri uri = Uri.parse("http://www.chillinglizard.com/
KROQ_test/zak.mp3");

                intent.setData(uri);

                startActivity(intent);

First the browser will launch and then the browser will launch the
media player.  But I don't want to launch the browser at all, I would
like the media player to launch only.

So, I also tried

                Intent intent = new Intent(Intent.ACTION_VIEW);
                Uri uri = Uri.parse("http://www.chillinglizard.com/
KROQ_test/zak.mp3");

                intent.setData(uri);
                intent.setAction(AUDIO_SERVICE);
                intent.setType("audio/*");

                startActivity(intent);

But when I do this, nothing happens.

Anyone know how to get the media player to launch directly?  It might
have to start downloading the mp3 to the sdcard and then launch the
media player and have it run off the local copy on the sdcard. But if
I did that, then I would have to handle all the buffering instead of
letting the media player 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

Reply via email to