I want to check first if spinner has null values based on the following:
String Name= spinnerName.getSelectedItem().toString(); if(Name != null) { } els
if (spinner1.getCount()==0){ Toast.makeText(getApplicationContext(),"spinner hasn't values", Toast.LENGTH_LONG).show(); }