Hello I have created two spinners where one reads from an array and its selected item value is taken by the 2nd spinner and fetched in a db to populate the 2nd spinner. It is working fine except that I can take the value of the selected item of the 1st spinner but not the 2nd spinner ALTHOUGH it does populate.
the error occurs here:
String selected = (String) s2.getSelectedItem(); although (again) the spinner is populated and I can getCount() or get the object or the view.
the error is a handler exception - Null Pointer exception