解决方案:只在activity销毁的时候db.close;
@Override
protected void onDestroy() {
super.onDestroy();
if (db != null) {
db.close();
}
}
解决方案:只在activity销毁的时候db.close;
@Override
protected void onDestroy() {
super.onDestroy();
if (db != null) {
db.close();
}
}