Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我正在使用 dbhelper 类,插入到 db 工作正常,我可以访问表内容,问题是当我第二次从另一个活动调用插入方法时,在getWritableDatabase(). 有人可以帮我修复这个错误吗?
getWritableDatabase()
可能是第二次,您将数据库打开为可读而不是关闭。我过去犯了这个错误并得到了上述错误。