play external .mp3 file

by Victor Hugo » Fri, 23 Apr 2010 00:18:00 GMT


Sponsored Links
 Hi people,

im playing a mp3 file on my emulador using
that code:

MediaPlayer mediaPlayer = Player.create(getApplicationContext(),
R.raw.mymusic);
mediaPlayer.start();

but i need play a mp3 file from my server
example:  http://www.myserver.com/mymusic.mp3 

how do i to play that mp3 file????

hugs

--



play external .mp3 file

by Rog茅rio de Souza Moraes » Fri, 23 Apr 2010 00:43:15 GMT


 Hi Victor,

take a look at this tutorial. I think this is what you want.

 http://blog.pocketjourney.com/2008/04/04/tutorial-custom-media-streaming-for-androids-mediaplayer/ 

Regards,

Rogerio

2010/4/22 Victor Hugo <vhs...@gmail.com>

>


Sponsored Links


play external .mp3 file

by Victor Hugo » Fri, 23 Apr 2010 03:04:48 GMT


 ty Rogrio

On 22 abr, 13:43, Rogrio de Souza Moraes <rogerio.so...@gmail.com>


> >



Other Threads

1. Block camera capture on Android

Hi All,

Is it possible to write an application to prevent the Android handset
from storing the capture picture? My thoughts are
a. Hook onto native camera apps and monitor for camera capture (or
events). Once there is a capture event, my application will be able to
detect and maybe remove the capture picture
b. Continously monitor camera capture picture storage. Are there any
known i/o api l can use to do this?
c. Prevent all writes to the OS. Possible?

Thanks for all the feedback in advance!

Cheers,

2. Routing and the Maps TOS

In the Google Maps TOS it says that you can't use it for route
guidance.  Does anyone know if displaying a line on a
MyLocationOverlay indicating a route would count as route guidance?
It's not real time guidance, but the map is synchronized to the user's
position.  Has anyone done this?

3. TableLayout possibly flawed in API Level 5, AVD 2.0

4. Exiting an onDraw()

5. Paid apps not visible again after Eris upgrade Sunday

6. Breaking News: The Market Still Needs Fixing...

7. MMS receiving/sending