I want to add a spinner in a custom dialog, and I am having difficulty in building ArrayAdapter correctly. I searched for several examples but I could not get help since the