Error (-38,0)
E/PlayerDriver(95): Creating Non-Tunnel mode playback - uncompressed MIO

^This error comes up when trying to play a sound file from sdcard. A 
strange error occurs which I've never seen and I couldn't find a solution 
for it till now. Here is my code.

MediaPlayer mp=new MediaPlayer();



        try {

            mp.setDataSource("/sdcard/bluetooth/thoovanath3.mp3");
            } catch (IllegalArgumentException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (IllegalStateException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        try {
            mp.prepareAsync();
        } catch (IllegalStateException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        mp.start();
       mp.setOnCompletionListener(new OnCompletionListener() {

            @Override
            public void onCompletion(MediaPlayer mp) {
                // TODO Auto-generated method stub
                mp.release();
            }
        });

-- 
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

Reply via email to