Does Android support raw XML compression?

Does Android support compression of XML source resources, that is, those in the directory res/xml?

I have several resources in assetsand plan to move them to res/xml(so that I can localize them), but I'm not sure if they will be compressed then.

I understand that I can verify this by unbuttoning some apk, but maybe someone already knows?

+5
source share
1 answer

Please see this blog post by Brian Hardy. All "compressible files" are compressed even in xml files. Xml files are compressed in binary format. If you do not want your files to be compressed, you can save them as one of the file types in a blog post. In addition, you can pack your data into a ZIP file (android will not try to compress it), and then unzip it when reading.

+1
source

All Articles