今天执行数据库语句的时候出现了这么一个错误

android.database.StaleDataException: Attempting to access a closed CursorWindow.Most probable cause: cursor is deactivated prior to calling this method.

大致意思是这样的

android.database.staledataexception试图访问一个封闭的cursorwindow最可能的原因光标停用调用此方法之前

目前在类中不关闭cursor和数据库连接对象即可

但是我想最好关闭,如果有大神看到求指教

 

 

相关文章:

  • 2021-08-29
  • 2022-12-23
  • 2021-09-28
  • 2021-06-14
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-28
  • 2021-04-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
相关资源
相似解决方案