Alex Rivera | Logout

Ignoring files from Android APK

Asked 2011-01-25T01:42:54.193
17

Is it possible to ignore files from being packaged into the Android APK? For instance, I have my .psd files in the same folder as their .png counterparts, and all the .psd files get packaged up.

I know I can move them outside of the folder, but I like having them in all together and would prefer not to if possible

Edit
Report

2 Answers

14

This is actually supported in the Android Asset Packaging Tool (AAPT).

I always put my psd-like files in the resource directories like this:

/res/drawable/_pre_production/ic_launcher.psd

Any _pre_production directory will not be added to the APK.

With this approach they're in a sub-directory of the actual images' directory, but I don't see the problem with that. It is still neatly organized. ;)

answered 2013-07-04T15:01:15.033
-2

If you are using Eclipse, right-click the file and select "Exclude from build path"

answered 2011-01-25T05:20:03.337

Your Answer