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
you need to remove the item from the position and then set the adapter again so that the list will be refreshed.
listofitems.remove(tempPosition);
setListAdapter(customAdapter );
to remove from the database. use the position to get the id.
c.moveToPosition(position);
id= c.getInt(c.getColumnIndex("_id"));
using the id you can delete
myDataBase.delete(tablename, "_id=?", new String[] {Integer.toString(id)});