Well I have a list, which has some items that the user creates. With this I'm also wanting to give an option to the user to remove the items so as not to accumulate, so I researched and found a way to use onItemLongClickListener
to remove the item. Here is the code:
adapter.remove(adapter.getItem(position));
adapter.notifyDataSetChanged();
Well so far so good when I gave LongClick
he removed the item, however after I went into another activity
of the app and came back to that activity
of ListView
the item I removed appeared again, What do I do to fix this, to go to the other activity
back and the item still removed?
Note, I'm using SQLiteDatabase.
Thank you!