tags:

views:

26

answers:

1

I have an Ant build script for my Android project. I’m using aapt to package various resource files. I want the resources files to be uncompressed. I ‘ve tried the ‘-0′ flag but the files still get compressed! But when I build through Eclipse, the resource files are uncompressed. Why doesn’t this flag work?

Here is my aapt target in Ant:

Packaging resources and assets...

+1  A: 

Have you considered putting your resources in the res/raw/ subdirectory instead? Files placed in this directory are not compressed. Alternatively, place your files in an assets/ directory and read them using the AssetManager if you need the original hierarchy or file names in your application.

Android documentation on resource types

Thaliant