Hello all!
I have a pretty simple question, but I am still hammering my brain with
finding an elegant solution.
I have a spinner filled with an array defined as xml resource:
<string-array name="distances">
<item>item1</item>
<item>item2</item>
</string-array>
Whenever I close the application I save the selected string of the
spinner in a database. E.g. I save "item1".
On application restart I now want to relaod the spinner with the
previous selection. Therefore I read "item1" from the db and now have to
somehow lookup the position of it and there I am stuck.
An additionalproblem is that the array might have changed from the time
where the data was saved to the db.
I hope I explained my problem clear enough.
Anyways lots of thanks, Fabian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---