I have two major questions.
There is a d
What happens to a Sqlite database when app is removed
Does your DB work (aside from not deleting when removing the app)?
If it isn't working properly, you may want to take a look at:
http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html
Although this is not necessarily related to your issue, you might want to consider creating an open()
and close()
for your DB and use a SQLiteOpenHelper
object in each - in open()
, you would use sqliteopenhelperObj.getWriteableDatabase()
and in close()
you would use sqliteopenhelperObj.close()
.
http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html#close
Edit: