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. Not able to send sms from emulator

Hi,

I have written a simple application which just sends a SMS but there
is no error shown and the sms is not able to be seen in the message
box of another emulator instance.

I have opened one emulator from eclipse and another from terminal. I
am trying to send the message in try block it goes into the try block
and sends the message but the other emulator instance is not able to
receive it.

I have set the permission to SEND_SMS and WRITE_SMS. Whenever emulator
starts it prompts and says com.android.phone not responding.

One more thing I have tried to just dial the number of another
emulator but call also ends.

Is there a problem with the emulator or something else?

Hope to get a reply soon.

Thanks & Regards
Sunil
--~--~---------~--~----~------------~-------~--~----~

2. New guy with a question

So I have developed a couple apps so far (nothing of significance,
just getting the hang of it) and I bought a used G1 that's already
been RC30'd. I have searched and from what I understand I cannot turn
on the wifi and register my google account that way correct? I need a
data plan? I am very eager to test my apps on my device but my data
plan doesn't start until the 8th. Someone please tell me you found a
way to turn on wifi with RC30.
--~--~---------~--~----~------------~-------~--~----~

3. Tutorial on searching in MapView

4. About Java.io files

5. How to initial SharedPreferences from an XML file in SD card

6. suggestion. replace onActivityResult(), Request Code and Result Codes with flexible callbacks

7. Mobile Developers Research Project asking for Android's opinion, by Carnegie mellon University