This is my code to populate the Spinner. It looks strange and ugly.
@Override
protected void onPostExecute(final List result) {
Sys
TRY THIS
@Override
protected void onPostExecute(final List result) {
System.out.println("Result: " + result);
final String[] test = new String[] { "test1", "test2" };
ArrayAdapter adapter = new ArrayAdapter(this,
android.R.layout.simple_dropdown_item_1line, test);
countrySpinner.setAdapter(adapter);
}
and xml as::