I try this but it still didn't work. did you have an example of using two spinners.
thanks On Jun 24, 1:19 am, TreKing <[email protected]> wrote: > On Thu, Jun 23, 2011 at 6:03 PM, Indicator Veritatis <[email protected]>wrote: > > > Well now, TreKing, I have read the documentation on both, and I still don't > > consider the answer obvious. > > OP asked "How can i update my spinner with the last value i have choise, > using shared preference??" > > Taking the question at face value, this implies to me A) getting and setting > the value from / to a Spinner, which you can do with obviously named methods > and B) getting and setting this value from / to a SharedPreference, which > you can also do with equally obviously named methods. > > The details of a full working scenario are, of course, a bit more involved > but given the question, the answer is readily obtained by a good perusal of > the docs, IMHO. > > > Not even after also noticing from the Spinner Tutorial that he should use > > an Adapter too, most likely SpinnerAdapter. Even what seems 'obvious' after > > reading all that just looks and feels wrong, "object disoriented". > > OK - seems beyond the scope of the question posed though. > > > Especially since the Android word 'Adapter' is not very closely related to > > the Adapter Pattern its name so strongly suggests. > > An Android Adapter provides the interface by which a user-defined object can > be used and represented in Android's system. It "adapts" your object to > Android's way of displaying data. Seems aptly named to me. > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- 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

