Это можно сделать, установив OnItemSelectedListener
на вашем счетчике.Ниже приведен пример:
spin.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view,
int position, long id) {
String country = (String)AdapterCountries.get(postion);
Toast.makeText(<YourActivityNameHere>.this, "You selected " + country, Toast.LENGTH_SHORT).show();
}
@Override
public void onNothingSelected(AdapterView<?> parent) {
}
}
);