[android-developers] Re: .apk file resource optimisation

2009-02-06 Thread Inderjeet Singh
I dont think assets/ files are compressed all that great. For my app, I was able to cut down the size of overall apk by almost 50% by using GZipInputStream. I posted the numbers a while back. But now I am paying the cost of decompression while loading those assets. I hope the Android platform

[android-developers] Re: .apk file resource optimisation

2009-02-06 Thread Dianne Hackborn
We welcome patches. On Fri, Feb 6, 2009 at 4:45 PM, Inderjeet Singh inder...@gmail.com wrote: I dont think assets/ files are compressed all that great. For my app, I was able to cut down the size of overall apk by almost 50% by using GZipInputStream. I posted the numbers a while back. But

[android-developers] Re: .apk file resource optimisation

2009-02-04 Thread FranckLefevre
Dear Raja, I think that compressing resources in APK is not such convenient for two re On Feb 3, 11:44 am, Raja Nagendra Kumar nagendra.r...@gmail.com wrote: When we open up the .apk file in winzip (as it is a jar file), we see the classes are compressed and stored as one file. However the

[android-developers] Re: .apk file resource optimisation

2009-02-04 Thread FranckLefevre
Dear Raja, I think that compressing resources in APK would not be that convenient for two reasons: 1- when resources are actual pictures, they are usually already compressed (using GIF, JPG, PNG,...) and trying to ZIP them does not significantly reduce their size 2- APK resource files are

[android-developers] Re: .apk file resource optimisation

2009-02-04 Thread Dianne Hackborn
Yep I think they are pretty compact in their current form. Note that the resource table itself is not stored compressed in the .apk, so that it can be mmapped into the process, which is a pretty important optimization for many cases. You can imagine doing some additional processing of the images

[android-developers] Re: .apk file resource optimisation

2009-02-04 Thread Dianne Hackborn
Oh btw there is one improvement we have in aapt for Cupcake to better compress .png image files. On Wed, Feb 4, 2009 at 2:24 PM, Dianne Hackborn hack...@android.com wrote: Yep I think they are pretty compact in their current form. Note that the resource table itself is not stored compressed