close() was never explicitly called on databaseandroid.datab
发布时间:2020-12-12 20:36:53 所属栏目:百科 来源:网络整理
导读:ERROR/Database(3236): close() was never explicitly called on databaseandroid.database.sqlite. DatabaSEObjectNotClosedException: Application did not close the cursor or database object that was opened here 它会产生一个异常提示,但程序是不会
ERROR/Database(3236): close() was never explicitly called on databaseandroid.database.sqlite. DatabaSEObjectNotClosedException: Application did not close the cursor or database object that was opened here 它会产生一个异常提示,但程序是不会中止。 字面上理解是database没有正常关闭,实际是因为重复实例化了你的database,或者说你连接已经建立,而你又尝试打开另一个连接时才会有异常。所以解决的办法是,保证你只打开一次连接。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |