how to load dynamic array from vector in android? [closed]
how to load dynamic array from vector in android?
Something like this?
int count = vector.size();
String[] array = new String[count];
vector.copyInto(array);
to add it to spinner try this
ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, array);
spinner.setAdapter(adapter);
精彩评论