Issue with multiple spinners

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Issue with multiple spinners

Postby insanomania911 » Wed Jul 01, 2009 9:28 pm

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

please help
Junior Developer
Junior Developer
Posts: 12
Joined: Tue Jun 09, 2009 4:53 pm


Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests