I have a listview that is sourced by an sqlite db. I call fillData() at several different points to update the listview.
private void fillData() {
mD
If everything is in one Activity just open database and cursor in onCreate() and close in onDestroy(). Another option is to use singleton or smoething which will open database or cursor before operations if it's null.
The erros are caused because if you are finishing operations on database you should close it.