public void setEmptyDefault ( String iso ) { if ( iso == null || iso . isEmpty ( ) ) { iso = DEFAULT_COUNTRY ; } int defaultIdx = mCountries . indexOfIso ( iso ) ; mSelectedCountry = mCountries . get ( defaultIdx ) ; mCountrySpinner . setSelection ( defaultIdx ) ; }
Set default value with