The cursor might not be initalized.
You expected a file in the SD card or internal memory, but you have to deal with a file from Google drive.
java.lang.IllegalStateException: Couldn''t read row 242, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. at android.database.CursorWindow.nativeGetString(Native Method)