for(int i = 1950 ; i<2016 ;i++)
{
listyear.add(i+"");
}
adapteryear = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, listyear);
adapteryear.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);year.setAdapter(adapteryear);