java.lang.RuntimeException

tip

You expected a file in the SD card or internal memory, but you have to deal with a file from Google drive.

tip

The cursor might not be initalized.


rafaelrafael
tip

In cause your problem comes because of mediastore, you have to try changing Albums.ALBUM_ID, to Albums._ID

tip

Check if there's no missing comma or semicolon in your sql declarations.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • android Fatal Exception: AsyncTask #5
    via Stack Overflow by kathleen55
    ,
  • please solve my error
    via GitHub by pawankevin
    ,
  • khalid hamza - Google+
    via by Unknown author,
  • GitHub comment 406#126619202
    via GitHub by forouher
    ,
  • Reading Call logs in Android
    via Stack Overflow by Narayan Periwal
    ,
    • java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:300) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. at android.database.CursorWindow.nativeGetString(Native Method) at android.database.CursorWindow.getString(CursorWindow.java:438) at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51) at android.database.CursorWrapper.getString(CursorWrapper.java:114) at com.iceteck.silicompressorr.SiliCompressor.getRealPathFromURI(SiliCompressor.java:322) at com.iceteck.silicompressorr.SiliCompressor.compressImage(SiliCompressor.java:163) at com.iceteck.silicompressorr.SiliCompressor.compress(SiliCompressor.java:59) at ground.project.com.undergroundproject.UploadPhotoActivity$ImageCompressionAsyncTask.doInBackground(UploadPhotoActivity.java:124) at ground.project.com.undergroundproject.UploadPhotoActivity$ImageCompressionAsyncTask.doInBackground(UploadPhotoActivity.java:113) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    65 more bugmates