java.lang.RuntimeException

tip

The cursor might not be initalized.


rafaelrafael
tip

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

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.

  • Taking the image from sd card
    via Stack Overflow by jiten
    ,
  • Get a number from your contact list
    via Stack Overflow by Fernando
    ,
  • ruben omar castro reyes - Google+
    via by Unknown author,
    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bignerdranch.android.runtracker/com.bignerdranch.android.runtracker.RunActivity}: 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.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) at android.app.ActivityThread.access$600(ActivityThread.java:130) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4745) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method) 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:434) at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51) at android.database.CursorWrapper.getString(CursorWrapper.java:114) at com.bignerdranch.android.runtracker.RunDatabaseHelper$LocationCursor.getLocation(RunDatabaseHelper.java:153) at com.bignerdranch.android.runtracker.RunManager.getLastLocationForRun(RunManager.java:131) at com.bignerdranch.android.runtracker.RunFragment.onCreate(RunFragment.java:89) at android.support.v4.app.Fragment.performCreate(Fragment.java:1477) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:893) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104) at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1467) at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:570) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1163) at android.app.Activity.performStart(Activity.java:5018) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2032) ... 11 more

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    rafaelrafael
    1 times, last one,
    65 more bugmates