Application did not close the cursor or database object that was opened here 异常
来源:互联网 发布:2017美国名校录取数据 编辑:程序博客网 时间:2024/05/21 06:26
今天在调用Android自带的sqlite数据库时,遇到了下面的异常
02-21 16:05:56.208: E/SQLiteDatabase(8789): close() was never explicitly called on database '/data/data/com.joyveb.tools/databases/lotteryTools.db'
02-21 16:05:56.208: E/SQLiteDatabase(8789): android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here
原因:
打开的数据库一直没有关闭,又重新打开使用。
解决办法:
调用SQLiteDatabase对象的close()方法进行关闭
0 0
- Application did not close the cursor or database object that was opened here 异常
- android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or da
- android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or da
- File opened that is not a database file file is encrypted or is not a databa
- window.close() doesn't work - Scripts may not close windows that were not opened by script.
- window.close()提示 "Scripts may close only the windows that were opened by it"
- It is possible that this object was over-released, or is in the process......
- close() was never explicitly called on databaseandroid.database.sqlite异常
- 处理AndroidSQLite-close()was never explicitly called on database异常
- js 关闭页面(Scripts may close only the windows that were opened by it.)
- js点击关闭当前浏览器Scripts may close only the windows that were opened by it.
- JS倒计时结束关闭页面:Scripts may close only the windows that were opened by it.
- Finalizing a Cursor that has not been deactivated or closed
- SharePoint创建web application出现“The password supplied with the username was not correct. Verify that i
- [乐意黎原创] window.close()提示 "Scripts may close only the windows that were opened by it"
- Exit the Android application or Close all the Android ativities
- Error 40000: Object (" ") did not match the required type `Hash'
- The Application was unable to start correctly (0xc0150002),Click OK to close the application.
- MySQL数据库的连接
- android手把手教你开发launcher(三)——启动安装的应用程序
- 用Hadoop构建电影推荐系统
- Swing窗口去掉标题栏
- 关联理解
- Application did not close the cursor or database object that was opened here 异常
- ios删除文件代码
- 我在shell中写cd 目录 为什么不会到我想去的目录中?
- android手把手教你开发launcher(四)——显示widget
- 浊转踪拽宗滋祖篆椎子撞赚足钻准啄ijdjqp
- C/C++ 笔试、面试题目大汇
- 全程软件测试之引子
- android手把手教你开发launcher(五)——设置壁纸
- iOS中获取相册中图片的文件名