안드로이드의 raw, asset 폴더의 개별 파일의 크기가 1MB 이상인 경우 Data exceeds UNCOMPRESS_DATA_MAX 에러가 발생한다.
해당 파일의 확장자를 변경하여 해결할수 있다.

Data exceeds UNCOMPRESS_DATA_MAX
It seems that android has put a limit of 1 MB on the size of the files that yo can put in your asset folder, which can be accessed through the Context. The reason for this is the "aapt" tool that Android uses to compress files into your apk install file. 

Eclipse doesn't not allow one to set complier options such as "aapt -0". One would have to edit the Ant file that Android uses or manually build the apk package from scratch which is the work that Ant would do.

I tried copying my 1.5 MB file to a raw folder but that didn't seem to work. Ultimately I used one of the following file extensions which are not compressed by default by the "aapt" command. These are:

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

My application is now working fine with the large_file.jet extension from the assets folder.
출처 : http://www.nutprof.com/2010/12/data-exceeds-uncompressdatamax.html
Posted by 암리타 :