If your device isn't too buggy to do it (which isn't that rare...),
simply pass the URL instead of the file name
(setDataSource("http://...";)).
And you should do MediaPlayer.prepare() in its own thread, otherwise
establishing the connection and buffering might end with an ANR.
If you need a way that really works on all devices (at least with ARM
processor...), or more than simple MP3 file streaming (e.g. ShoutCast
support), you need to look for a library that works for you,
MediaPlayer won't do.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to