I have a zip file that contains mp3 tracks. I would like to play these
tracks directly from the Zip file (without decompressing). I tried the
various uri formats but none seem to work with the MediaPlayer. Am I
missing something... to give an idea here is what I am doing:

                String uriS = "zip:file://mnt/sdcard/test/pqr.zip!/
abc.mp3";

                Log.i(TAG,mp+" "+uriS);


                mp = new MediaPlayer();
                try{
                        mp.setDataSource(uriS);
                        mp.prepare();
                }catch(IOException ioe){
                        Log.i(TAG,"Exception...",ioe);    ///  This is what I 
get ->
(Prepare failed.: status=0x1 )
                        return;
                }
                mp.start();

TIA

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to