In using this code (adapted from here) I get the following error:
The constructor ArrayAdapter(new AdapterView.OnItemSelectedListener(){}, int, String
In the constructor to your new ArrayAdapter
on the following line:
ArrayAdapter beAdapter = new ArrayAdapter(this,
this
points to the current instance of the OnItemSelectedListener
class you are in and not the parent view, this is where the problem occurs because ArrayAdapter
does not have a matching constructor. You should try using MyParentView.this
(where MyParentView
is the name of the view you are in) instead to pass the appropriate instance.