I am making an android application in which i have five items in a list .On each item click data is coming from url and then i have stored the items in local database.Now i want to have delete button before each item so that user can delete the item acc to his choice.That is how to delete a specific value from database in android application.I have tried googling ,,tried some ways given,but that didnot worked
Can anyone guide me how to accomplish this task?
you need to remove the item from the position and then set the adapter again so that the list will be refreshed.
to remove from the database. use the position to get the id.
using the id you can delete