代码如下: public class ReadBitmap { public void readByte(Context c, String name, int indexInt) { byte[] b = null; int[] intArrat = c.getResources().getIntArray(indexInt); try { AssetManager am = null; am = c.getAssets(); InputStream is = am.open(name); for (int i = 0; i intArrat.length; i++) { b = new byte[intArrat[i]]; // 读取数据 is.read(b); saveMyBitmap(Bytes...[ 查看全文 ]