This is my code to populate the Spinner. It looks strange and ugly.
@Override protected void onPostExecute(final List result) { Sys
(SearchTopActivity.this, android.R.layout.simple_spinner_dropdown_item, new String[]{"test1", "test2"}) change this
(SearchTopActivity.this, android.R.layout.simple_spinner_dropdown_item, new String[]{"test1", "test2"})
android.R.layout.simple_spinner_dropdown_item to android.R.layout.simple_spinner_item
refer http://developer.android.com/resources/tutorials/views/hello-spinner.html