Skip to content Skip to sidebar Skip to footer

Exception For Sqlite Database Pragma?

I got this error when app was crashed i dont understand this error what this error said. here i put my crash log report from mail. check below for what i have used below method fo

Solution 1:

there is basic flaw in your code. Every time you are overwriting mDB_Helper and mSQLiteDatabase when Open_Database is called. Now when you call Close_Database, what happens to already opened connections. only the last connection is closed.

Instead follow singleton pattern have just one instance of mDB_Helper

or change the code to do open and close the database in the UI layer where ever you use the dbconnection

Post a Comment for "Exception For Sqlite Database Pragma?"