I created an app for android (only versions 2.2+) that makes use of the MediaPlayer to stream audio from the internet. It works flawlessly on the emulator. However, when running it on my device (Droid X), it won't play the music. Any ideas of what could be wrong?
Here's the gist of the code. Note: this code runs in a service.
MediaPlayer mp = new MediaPlayer();
mp.setOnPreparedListener(this)
mp.setDataSource(PATH_TO_STREAM);
mp.prepareAsync();
The in onPrepared:
mp.start();