For streaming, you should be using prepareAsync(). I am not sure why the behaviour is different in pre-2.2 devices, but at-least the docs say that for streaming, the prepare() method will not return immediately.
http://techdroid.kbeanie.com/2011/06/streaming-radio-stations-on-android.html On Jun 21, 2:12 am, Chandler Bennett <[email protected]> wrote: > I am currently designing an android application that incorporates > radio streaming. The app works as it should with devices below Android > 2.2, but works slowly if the device is 2.2 or above. I am using the > MediaPlayer object, and I am calling the 'setDataSource(mylink.com/ > radio.mp3)' method as well as the 'prepare()' method. The problem > seems to occur when the MediaPlayer is being prepared. It just takes a > very long time to ready itself for the play state. And again, this > issue doesn't arise on devices below Android 2.2. Any ideas? -- 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

