what is the purpose of the sub “soortmenu” in the “nieuw” activity? You create an array on the main activity (nm(20) As String), add your 2 values at position 0 and 1 and fill the list. Then you open an item and there you add completely different values to the array from position 0-20 and are then surprised that the buttons no longer work because the content in the array has changed and the values at position 0 and 1 are no longer the same as at the beginning.
My advice is to delete the CustomListView items and rebuild it when you change your array, because you have added new values to the array that you are not displaying?
I don't quite understand what your goal is