I want to fill a spinner with the items of an array List but I can´t. Here is my code:
List<String> list = new ArrayList<String>();
list.add(id_circuito);
First, I add an element to the list and later:
ArrayAdapter<String> adp1=new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,list);
adp1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
sp1.setAdapter(adp1);
It says me "The constructor ArrayAdapter(MainActivity.GetContacts, int, List) is undefined", how can I do this? Thanks