rantravee
rantravee

Reputation: 7421

android resources in apk

In my android development project under the folder res there are all the resources my application uses. The size is 3.11 mb and contains 1013 files . On the other hand in the apk there is the folder res with all the resources as well , but this has a size of only 760 kb and contains only 332 files . Now does this means that not all the resources are packed? If this is the case what happens when a needed resources is referenced?

Upvotes: 1

Views: 2877

Answers (2)

Judy
Judy

Reputation: 1776

Yes, many of the XML ones are pre-compiled in tha resource.arsc file. You can use aapt dump --values resources xxx.apk to view the resource.arsc file, and you will find that pre-compiled xml.

Upvotes: 1

CommonsWare
CommonsWare

Reputation: 1006539

Now does this means that not all the resources are packed ?

No, it means the APK file is a compressed ZIP-style archive.

Upvotes: 1

Related Questions