报错的代码行: String mimeType = albums.getString(
albums.getColumnIndex(MediaStore.MediaColumns.MIME_TYPE));
报错的信息:
java.lang.IllegalStateException:Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
报错的代码行: String mimeType = albums.getString( albums.getColumnIndex(MediaStore.MediaColumns.MIME_TYPE)); 报错的信息: java.lang.IllegalStateException:Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.