I have some classes on my code and based on the click of the listview i want to run the selected class. What I mean is that if a user clicks on position 0 I want to run method GoToTown().
I have more than 40 methods so if I do it with if / elseif it would be really bad. I have a custom adapter for the listview so probably I could use it somehow?
Is there some way I could pass an array to do it?