I have same problem and have found the answer. You dont use application context, instead, just use getActivity()
(if you are in fragment) or this (if you are in activity), it will work
dateAdapter = new ArrayAdapter<String>(**this**,
android.R.layout.simple_spinner_item, list);