I'm getting an exception when calling the setImage(uri) method. This is the exception:
android.database.CursorIndexOutOfBoundsException: Requested column: 0, # of columns: 0
Uri was received using default MediaStore.ACTION_IMAGE_CAPTURE with my locally created uri.
I'm using this uri in other parts of my app and everything works fine.
I found out that this exception thrown when lib is trying to get an orientation in LoadImageUriTask.
The cursor.getCount return 1, but cursor.getColumnCount return 0. That's why int orientation = cursor.getInt(0); throw an exception.
NOTE: When I'm using uri from Intent.ACTION_GET_CONTENT everything works fine
I'm getting an exception when calling the
setImage(uri)
method. This is the exception:android.database.CursorIndexOutOfBoundsException: Requested column: 0, # of columns: 0
Uri was received using default
MediaStore.ACTION_IMAGE_CAPTURE
with my locally created uri. I'm using this uri in other parts of my app and everything works fine.I found out that this exception thrown when lib is trying to get an orientation in
LoadImageUriTask
. Thecursor.getCount
return 1, butcursor.getColumnCount
return 0. That's whyint orientation = cursor.getInt(0);
throw an exception.NOTE: When I'm using uri from
Intent.ACTION_GET_CONTENT
everything works fineAny ideas how to fix this?