摘要:
Android 中对资源的管理基本会涉及到 asset 、 raw 、私有目录(/data/data/package) 以及 /sdcard,对于后2种,一般都可以采用基本的文件操作来管理,对于asset 、raw 的管理有很多人会讨论到,基本上有如下两种rawResources res = getResources();InputStream myfile = res.openRawResource(R.raw.文件名);//文件名不加后缀assets1 AssetManager assetManager = getAssets();2 InputStream inputStream =.. 阅读全文