0
I wanted to know how when selecting a spinner item, another spinner is filled with an Adapter. I tried this way:
@Override
public void onItemSelected(AdapterView<?> arg0, View arg1, int posicao, long arg3) {
ArrayAdapter<String> adapter2
= new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, minhalista);
}
But he does not let create the Adapter, in my case it can only be in the click because I will pull from a database, and load this list. How do I play the list in spinner2, when a spiner1 item is selected?
Don’t let create why? Are there any mistakes? Which?
– Jorge B.