Why do you need that? Zipping up MP3's does not give you advantage of saving space. MP3 files are already as compressed as they can be. Nor does it hide it from users that might want to get to them. Unzip the files to a directory and create an empty file called .nomedia in that directory(so that the media player does not add them).
On 19 янв, 23:05, RS <[email protected]> wrote: > 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 [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

