Which files are included in APK file

android, apk

Solution

Files stored in the root directory (including custom subdirectories) are not included in the APK. It is very common practice to have your own files needed for the project in the project root. For example, a source license file, a to-do list, a directory with high-resolution images that you create distributed images out of, etc.

Android uses these subdirectories with special meaning:

- src/

- res/

- assets/

- libs/

- gen/

- bin/

Using a subdirectory name other than those, Android will ignore your files.

Problem

I have a lot of unused images in my android app. Those images are placed in separate folder in project root directory. They are not being used anywhere in a project, but I need to keep them. My concern is that will these unused images be included in the apk file? Since there are a lot of them and increase the size of apk file.

Original source