1

How to delete selected items from listview in android clicking on delete context menu item?

view story
linux-howto

http://stackoverflow.com – I want to create a multiple-choice listview; associate the listview to a contextual menu. The menu has a delete item. When I choose the delete item on the menu, the selected items in the listview must be deleted; of course the listview will appear without the deleted items, but I have problem when selecting delete item. This is my code String[] mycolors; ListView myLis; ArrayAdapter<String> dataAdapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); myLis = (ListView) findViewByI (HowTos)