"if i don't compress a plain text file in android, will it be compressed in the apk anyway?" Code Answer

3

files are compressed based on their extension:

/* these formats are already compressed, or don't compress well */
static const char* knocompressext[] = {
    ".jpg", ".jpeg", ".png", ".gif",
    ".wav", ".mp2", ".mp3", ".ogg", ".aac",
    ".mpg", ".mpeg", ".mid", ".midi", ".smf", ".jet",
    ".rtttl", ".imy", ".xmf", ".mp4", ".m4a",
    ".m4v", ".3gp", ".3gpp", ".3g2", ".3gpp2",
    ".amr", ".awb", ".wma", ".wmv"
};

source

if it's not one of those it will be compressed when building the apk.

By ndhaijaan on July 10 2022

Answers related to “if i don't compress a plain text file in android, will it be compressed in the apk anyway?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.