SQLiteClosable 错误

来源:互联网 发布:网络教育本科出国留学 编辑:程序博客网 时间:2024/05/16 06:51

attempt to acquire a reference on a close SQLiteClosable

 

如果你是使用content provider有可能因为你的操作不当,会出现以上的错误

 

使用Cursor进行了查询

Cursor cursor = getContentResolver().query(uri, proj, null, null, null);

 

但是没有关闭

 

所以在查询结束后,你需要 cursor.close()

原创粉丝点击