> when you are adding new items to your SpinnerAdapter just make sure > than new items have unique ids and store in the database ids not > positions
Mmmm when you say id's I'm a little unclear what you mean. I define in an array.xml file the following <string-array name="some_demo_array"> <item>box</item> <item>foil</item> <item>tree</item> <item>apple</item> </string-array> and I also define (for the prefs values) vales associated with this. <string-array name="some_demo_array_values"> <item>0</item> <item>1</item> <item>2</item> <item>3</item> </string-array> Are you saying I save the values in the database. If you mean id as in row id from the database then I should have made it clear that the data that is used to populate the Spinner is not from a database it is in an array as shown. What I am trying to do is just store in the database the selection the user made. Thanks for the response. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en