Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何删除 Android 中的悬空光标?每当我使用游标完成工作时,我都会关闭数据库。
我想要这个,因为我遇到了与Google 问题跟踪器问题 36921069中显示的相同的错误。
谁能告诉我如何删除悬空光标
close()当您不再需要 Cursor 对象时调用它(例如,onDestroy()使用它的活动)。
close()
onDestroy()
每当我使用游标完成工作时,我都会关闭数据库。
这与关闭游标无关。