안녕하세요.
cursor를 이용해서 cursor.getColumnCount를 하면 4개가 있다고 나오는데
cursor.getString(2) 이렇게 해당 index에 접근을 하려고 하면 자꾸 index 오류가 나네요.
로그캣 메시지는 아래와 같습니다.
Caused by: android.database.CursorindexoutOfBoundsException: Index -1 requested, with a size of 2
읽어주셔서 감사합니다.
cursor.moveToFirst() 나 cursor.moveToPosition(position) 등으로 커서 포지션을 지정해 주셔야 할 것 같네요