更新时间:2023-01-12 20:18:23
You can use the singletone instance and gennerally you can do not close database (but keep transaction closed). There is some information:
Android SQLite DB When to Close
Android的SQLite的:尝试重新打开已关闭的对象
Android:打开和关闭SQLite数据库
如何在Android开放/关闭的SQLite数据库正确
打开和打开问题在ContextMenuStrip中关闭事件
并发访问在Android的SQLite数据库 - 数据库已经关闭
在python中打开和关闭文件
如何在swift中打开和关闭手电筒?
打开和关闭表单时遇到问题。
一个按钮可以打开和关闭另一个应用程序
如何在Android 8.0(Oreo)中以编程方式打开/关闭wifi热点