Cursor Index Out of Bounds Exception

前端 未结 2 1658
Happy的楠姐
Happy的楠姐 2021-01-07 01:44

In attempting to execute a query on my database, I get this exception. However, the documentation states that the method SQLiteDatabase.query(...) returns, \"A

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-07 02:10

    After query you need to call next() or moveToFirst(). Cursors are lazy loaded, after calling these methods cursor is loaded into memory. You can decide when to do it.

提交回复
热议问题