How to avoid PlayerDriver "invalid percentage value" error?

by Androide » Tue, 15 Jun 2010 15:43:30 GMT

Sponsored Links
 I want to play a live streaming in mp3, but when i call prepareAsync,
"invalid percentage value xxx" shows. This is a example of live
streaming: :80/rtve/radio1.mp3

And this is my simplified code:

mp = new MediaPlayer();
        try {
mp.setDataSource(" :80/rtve/radio1.mp3");
                } catch (Exception e) {
        mp.setOnPreparedListener( new OnPreparedListener() {
                        public void onPrepared(MediaPlayer mp) {

        Button button = (Button) findViewById(;
        button.setOnClickListener( new OnClickListener() {
                        public void onClick(View v) {

I understand why this is happening, but other apps use this method and
don't show any error in logcat. How can i get this?