If you name the file .mp3, it won't use compression at all.
On Tuesday, August 21, 2012 3:25:38 PM UTC-5, Tamás Kovács wrote: > > Hello, > > I have a custom file format in res/raw, which means it will get > compressed in APK. > > Question: > > Assume my application is installed on the device. When I open a file > via openRawResource(), does it completely uncompress the file in the > memory? > > E.g. if it's a 3MB file, will it uncompress it in memory? If I only > need 10KB data from a certain offset (and I reach it via > BufferedInputStream.skip), will it still consume 3MB when > openRawResource() is called? > -- 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

