I have a spinner with some items (strings). I want to add the selected items to a list. I read online that I should use the onItemSelectedListenerrather than the
onItemSelectedListener
string will not be able to check using '==' instead you need to use equals("string")
if (selectedItem.equals("Add new category")) { // do your stuff }