2
I tried using the following code but error
form.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
switch(form.getSelectedItemPosition()){
case 0:{
i=R.array.tecnologicas;
break;
}
case 1:{
i=R.array.direito;
break;
}
case 2:{
i=R.array.administracao;
break;
}
}
adapter_curso = ArrayAdapter.createFromResource(this,i,android.R.layout.simple_spinner_dropdown_item );
adapter_curso.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);
curso.setAdapter(adapter_curso);
}`