我得到一个当后台线程正在将数据处理到数据库时如何处理DB.close?
java.lang.IllegalStateException Cannot perform this operation because the connection pool has been closed.
,因为我的应用程序从服务器获取信息,并在其中background thread
写的东西我SQLite database
处理它。
我在关闭应用程序时收到此错误,并且仍有后台线程正在尝试写入封闭的数据库。
我解决这个问题的最好方法是什么?
挂起后台线程? – JohnnyAW