1
Try this one itemsPending.remove(sp.keyAt(i)); adapterPending.remove(adapterPending.getItem(sp.keyAt(i))); adapterPending.notifyDataSetChanged(); EDIT: According to my research, SparseBooleanArray.size() will sometimes only return the count of true values. Try this for(int i = lstPendingPro....