android.database.CursorIndexOutOfBoundsException: W/System.err(15366):请求索引1,大小为1
byte[] bytes = cur.getBlob(cur.getColumnIndex(imgarr.get(i)));
ByteArrayInputStream input = new ByteArrayInputStream(bytes);
Bitmap bit = BitmapFactory.decodeStream(input);发布于 2012-08-25 18:26:12
您的游标只有一行,但您正在尝试访问游标的第二行。
添加下面一行
cur.moveToFirst()就在getBlob函数之前
https://stackoverflow.com/questions/12124524
复制相似问题