[Quote=引用 11 楼 id19870510 的回复:]
Files saved in the assets/ directory are not given a resource ID, so you can't reference them through the R class or from XML resources. Instead, you can query files in the assets/ directory like a normal file system and read raw data using AssetManager.
Files saved in the assets/ directory are not given a resource ID, so you can't reference them through the R class or from XML resources. Instead, you can query files in the assets/ directory like a normal file system and read raw data using AssetManager.
这段cpp,表示assets目录存放的格式很多,部分格式会压缩打包的,比如上面的格式由于已经压缩就不需要再压缩了,这段回复是相对于 6楼这句“都没说到点子上, 放 html 一般用在web开发的”,比如我们做的来电归属地数据库,就是放到assets目录的,还有就是游戏中的部分资源文件,比如mp3音乐等等