I am developing an android application in which i have a static listview which contains 5 items.
I want that when i click on selected item an alert dialog should appear containing buttons yes or no. If i click on yes, selected item should get deleted.
Is it possible? If yes, how? Can anyone guide me.The data in the list is static
Here is my java class code
call adapter.clear() followed by adapter.notifyDataSetChanged() when you want to delete the elements.