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. adb logcat show duplicate message.

Dear,


When I use adb logcat and ddms,
sometimes logcat show duplicate messages,
for example)

logcat.cpp  00085  W/ActivityManager : Activity pause timeout for
HistoryRecord{2e652888 com.android.phone/.InCallScreen}
logcat.cpp  00085  W/ActivityManager : Activity pause timeout for
HistoryRecord{2e652888 com.android.phone/.InCallScreen}

logcat.cpp  00085  W/UsageStats : Something wrong here, didn't expect
com.android.phone to be resumed
logcat.cpp  00085  W/UsageStats : Something wrong here, didn't expect
com.android.phone to be resumed

What's the problem?

-- 

2. How to install my app and keep an icon from showing up in the application tray

Hi,

I've got an app that I would like to install without having an icon
show up in the application tray.  If I don't specify an icon in my
manifest, Android still plops a default icon in the tray.  How do I
prevent this?

Regards,

- Mike

-- 

3. getLastKnownLocation *again*

4. how to support multi-touch of Android cupcake?

5. sending an intent from RuntimeInit crash handlers.

6. Fatal error occurs during creating CDMAPhone in 2.0 releas

7. Can't log event PHONE_UI