How to avoid db not close and cursor exception

前端 未结 2 943
粉色の甜心
粉色の甜心 2021-01-07 06:23
02-02 14:31:34.048: WARN/SQLiteCompiledSql(359): Releasing statement in a finalizer. Please ensure that you explicitly call close() on your cursor: SELECT * FROM 
02         


        
2条回答
  •  庸人自扰
    2021-01-07 06:31

    I resolved the exception. I was calling

     db = eventsData.getReadableDatabase();
    

    twice thats why the exception is thrown

提交回复
热议问题