I am using drop down menu (spinner) and I want know how to get value from drop down menu to a variable if user selects one?
Example : select city=Varanasi,Delhi,Chennai,Erode etc. and if user selects Chennai then store it to a java variable.
String selectedCity;
//after selecting from drop down menu
selectedCity="Chennai";