I don't think you can do this. Most of the devices come with their own Media
player implementations. So, unless, those players expose an Intent to do so,
you cannot use the default media player to stream mp3s. However you can
create your own media player activity and stream your files.

On Fri, Nov 12, 2010 at 6:19 PM, resursecrestine <[email protected]>wrote:

> Hello,
>
> I am working on a application that would allow users to play remote
> files. My question is how do I open those remote files to be played in
> the default android player?
>
> I have tried something like
>
> Integer i = v.getId();
> String link = "http://www.site.com/file.mp3";;
> Uri uri = Uri.parse(link);
> Intent intent = new Intent(Intent.ACTION_VIEW, uri);
> startActivity(intent);
>
> but this does not give me control of what is happening!
>
> Do you know another way?
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com

-- 
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