I have implemented the spinner by populating the array list through database.I can get and show the array list in my spinner array adapter but if I select the item in spinne
You should use the first Spinner to get the values.
Try the following code:
String provider = spinner1.getSelectedItem().toString();
What you are doing is getting the default value of the spinner.