When using asset or Res/raw in Android, you must go through asset manager. When using these two resource delivery methods, you must pay attention to the file size. After debugging, it is found that the uncompress_data_max value of the resource file in asset or Res/raw is 1048576 bytes, that is, the maximum size is not compressed 1 MB. Otherwise, the message of the obtained debug type will be displayed in logcat, 04-09 02:48:51. 220: Debug/asset (10734): Data exceeds uncompress_data_max (1905341 vs 1048576). A system error is generated. err, Java. io. ioexception.
Currently, the solution is to put the file into the sdcard, but this solution is not good except for the microSD reading Io efficiency and power consumption, and there may be problems when the SD card is removed, solution: if the data volume is large, SQLite is a solution, and openfileoutput reading is also a good choice.
From: http://blog.csdn.net/lingyu2843/article/details/5466196