开发者

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 doe开发者_开发百科s this means that not all the resources are packed? If this is the case what happens when a needed resources is referenced?


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

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜