android - 如何删除 Android 中的悬空光标?

标签 android crash android-cursor

如何删除 Android 中的悬空光标?每当我使用游标完成工作时,我都会关闭数据库。

我想要这个,因为我得到了与 Google Issue Tracker issue 36921069 中所示相同的错误.

最佳答案

Can anyone tell me how to remove dangling cursors

当您不再需要 Cursor 对象时调用 close()(例如,使用它的 Activity 的 onDestroy())。

I am Closing the Database whenever my work is completed with cursors.

这与关闭游标无关。

关于android - 如何删除 Android 中的悬空光标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8311348/

相关文章:

android - 将 JSON 转换为游标

Android Spinner 使用带有 ID 的数组来处理图像资源

PyCharm 上的 Python 崩溃并显示 'Process finished with exit code -1073740940 (0xC0000374)'

ios - 程序因未知原因崩溃

android - 从查找 URI 获取电话号码

java - 通过内容提供者传递二进制 blob

android - Google App Engine - 后端的定义

android - AlarmManager 设置不止一次?

php - Firebase 如何发送主题通知

windows - 为什么此 iframe 标记会导致 x64 Windows 上的 Safari 崩溃?