ITeye博客

android assert 自定义格式被压缩

kfc_davy · 2012-04-05 16:42 · android · 移动开发 · Markdown

asset如果自定义一个格式 那么会被压缩掉

出现


04-05 16:35:32.121: E/E(13220): java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed


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"  
};  

只有这些文件后缀在asset中不会被压缩。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。