java.lang.IllegalStateException: attempt to re-open an already-closed object

来源:互联网 发布:js format函数空格 编辑:程序博客网 时间:2024/06/07 13:05

java.lang.IllegalStateException: attempt to re-open an already-closed object的解决方法:


如果你在一定的时间内需要重复的操作数据库,那么不要调用close()方法,关闭游标就可以了。在你Activity注销或者真正不再需要的时候调用数据库的colse()方法.
0 0