How to Open/Close SQLite db in Android Properly

后端 未结 3 1603
礼貌的吻别
礼貌的吻别 2020-12-15 10:53

I have an app that functions properly and does not force close or crash. But when I look at LogCat, it occasionally gives me this:

05-20 15:24:55.338: E/SQL         


        
3条回答
  •  青春惊慌失措
    2020-12-15 11:33

    You are probably not handling your database correctly; you are opening more database instances than you are closing.

    There are a number of design patterns you can follow to correct this behavior. You might want to consult this answer for more information.

提交回复
热议问题