The screen with the temperature spinner is an edit screen which is filled at run time with the data the user entered in a previous session. The data will eventually come from a cursor/sqlite database, but for now as I work on the ui, I am simulating the app with sample data using string arrays and simple array adapters. I have some helper methods in a static class that provided the data in the form of arrays to the app (ie as a standin for the db backend until the db is stable). I guess I can wait to solve this problem when I get to the cursor/sqlite integration phase, and just change my sample data to hold the index instead of the actual string value.
The heart of my question is if there is another way to search the arrayadapter for formatted strings. Thanks, Mark On Mon, Nov 19, 2012 at 2:08 AM, skink <[email protected]> wrote: > > > Mark Phillips wrote: > > Any suggestions on how to set the value of the spinner index by searching > > the strings in the spinner array? > > why would you do that? > > why not simply: > > // set C deg > s.setSelection(0) > // set F deg > s.setSelection(1) > // set K deg > s.setSelection(2) > > pskink > > -- > 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 > -- 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

