为什么我收到此错误?
close() was never explicitly called on database '/data/data/com.example.quickorder/databases/QuickOrderDB'
这是我在 DatabaseHandler 中的代码:
void addCliente(Anpcfbcf cliente) {
SQLiteDatabase db = this.getWritableDatabase();
ContentValues values = new ContentValues();
values.put(BCCSC, cliente.getBCCSC());
values.put(BCACC, cliente.getBCACC());
values.put(BCAIN, cliente.getBCAIN());
values.put(BCCAP, cliente.getBCCAP());
values.put(BCALO, cliente.getBCALO());
values.put(BCCPR, cliente.getBCCPR());
values.put(BCCTE, cliente.getBCCTE());
values.put(BCCPA, cliente.getBCCPA());
// Inserting Row
db.insert(ANPCFBCF, null, values);
db.close(); // Closing database connection
}