Hi, I've got an form activity where I save the information entered in to it to the sqllite database. For the edittext fields this is simple to handle, however I'm not sure of the best practice for handling the storage of spinner selections.
If I have a spinner with say the following info in it red blue green yellow then I could just save the position selected as an Integer and then when I read it back from the db later just set the selected position. But lets say I later update my app and now it has a few extra color fields in the spinner and not all are added at the end red black blue gray green pink yellow If I had been saving the position of the selected item in the spinner the spinner would be set incorrectly when the user updates the app. So what is the best practice for this situation? I had thought about saving the actual text but again this may change, the locale may change ..... I notice in the preference screens that spinner related information can have not just the data to display defined by an array but an associated values array, is this to handle this situation?? Any tips would be gratefully received. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

