Finalizing a Cursor that has not been deactivated or closed
发布时间:2020-12-12 20:34:01 所属栏目:百科 来源:网络整理
导读:问题描述: 使用Sqlite数据库时,有时候会报下面的异常: Finalizing a Cursor that has not been deactivated or closed。 一个光标没有被停用或者关闭。 解决方法: 在使用Cursor对象前,调用startManagingCursor()方法,让Activity基于本身的生命周期,来
问题描述: 使用Sqlite数据库时,有时候会报下面的异常: Finalizing a Cursor that has not been deactivated or closed。 一个光标没有被停用或者关闭。
解决方法: 在使用Cursor对象前,调用startManagingCursor()方法,让Activity基于本身的生命周期,来管理Cursor的生命周期。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |