close() was never explicitly called on database,SQLiteMisuseException

报错:close() was never explicitly called on database '/data/data/com....'

原因:数据库使用后未关闭

解决:使用后关闭(有点废话了)


报错:android.database.sqlite.SQLiteMisuseException: library routine called out of sequence

原因:貌似是对数据库频繁的操作引起的

解决:参考http://stackoverflow.com/questions/13124257/several-exceptions-when-working-with-sqlite-database 


好记性不如烂笔头(现在是键盘了),因此记录一下

你可能感兴趣的:(close() was never explicitly called on database,SQLiteMisuseException)