Problem streaming with mediaplayer on Samsung Galaxy Tab running 2.2.1
<p>I have a problem streaming an mp3 source with Samsung Galaxy Tab running 2.2.1
I try this code</p>

<pre><code>            mp = new MediaPlayer();
            prepared_listener = new MediaPlayer.OnPreparedListener() {
                @Override
                public void onPrepared(MediaPlayer mp) {
                    mp.start();
                }
            };

            buffering_listener = new MediaPlayer.OnBufferingUpdateListener() {

                @Override
                public void onBufferingUpdate(MediaPlayer mp, int percent) {
                    context.onBuffering();
                }
            };

            boolean canPlay = false;
            boolean clean = true;
            int i = 0;

            do{
                try {
                    mp.setOnPreparedListener(prepared_listener);
                    mp.setDataSource(SomafmApp.mycontext, Uri.parse(urlsToPlay[i++].getUrl()));
                    mp.prepare();
                    canPlay = true;
                } catch (IllegalArgumentException e) {
                    e.printStackTrace();
                } catch (SecurityException e) {
                    e.printStackTrace();
                } catch (IllegalStateException e) {
                    e.printStackTrace();
                } catch (IOException e) {
                    e.printStackTrace();
                }
                catch (ArrayIndexOutOfBoundsException e) {
                    canPlay = true;
                    clean = false;
                }
            }while(canPlay == false);
</code></pre>

<p>I tried this piece of code on an LG VM 670 with 2.2.1, but the result is the same ... this code works well on my htc wildfire with cyanogen mod 7 2.3 ... Where am I worng??</p>

<p>Thanks in advance ^^</p>
